lib/transcoding_machine/server/transcoder.rb in staugaard-transcoding_machine-0.1.4 vs lib/transcoding_machine/server/transcoder.rb in staugaard-transcoding_machine-0.1.5

- old
+ new

@@ -116,12 +116,13 @@ @event_handler.transcoded(media_format) if @event_handler dst_file_path end def put_destination_file(file_path, media_format) - @event_handler.putting_destination_file(file_path, media_format) if @event_handler - storage.put_file(destination_file_path(media_format), destination_file_name(media_format), media_format, @storage_options) - @event_handler.put_destination_file(file_path, media_format) if @event_handler + dst_name = destination_file_name(media_format) + @event_handler.putting_destination_file(dst_name, media_format) if @event_handler + storage.put_file(destination_file_path(media_format), dst_name, media_format, @storage_options) + @event_handler.put_destination_file(dst_name, media_format) if @event_handler end def clear FileUtils.rm(source_file_path) end