Skip to content

Commit

Permalink
Swapped order of yielding progress and logging after encoding succeed…
Browse files Browse the repository at this point in the history
…ed as requested by arronmabrey.
  • Loading branch information
dbackeus committed Jan 14, 2011
1 parent 3209efd commit d33d44e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ffmpeg/transcoder.rb
Expand Up @@ -41,8 +41,8 @@ def run
end

if encoding_succeeded?
FFMPEG.logger.info "Transcoding of #{@movie.path} to #{@output_file} succeeded\n"
yield(1.0) if block_given?
FFMPEG.logger.info "Transcoding of #{@movie.path} to #{@output_file} succeeded\n"
else
errors = @errors.empty? ? "" : " Errors: #{@errors.join(", ")}. "
FFMPEG.logger.error "Failed encoding...\n#{command}\n\n#{output}\n#{errors}\n"
Expand Down

0 comments on commit d33d44e

Please sign in to comment.