Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix preview code

  • Loading branch information...
commit 26484b24cac8b8b932c306f6490b79dafb8a1718 1 parent 24e1a0c
@paulcbetts authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/engine.rb
View
7 lib/engine.rb
@@ -59,7 +59,7 @@ def create_path_and_convert(item)
FileUtils.mkdir_p(dest_file.dirname.to_s)
ret = transcode(item.source_path, dest_file.to_s)
- get_screenshot(item.source_path, item.screenshot_path) unless ret
+ get_screenshot(item.source_path, item.screenshot_path) if ret
ret
end
@@ -108,6 +108,11 @@ def run_external_command(cmd)
e = Process.wait pid
exitcode = ($?) ? ($?.exitstatus) : -1
logger.info "Process returned #{exitcode}"
+
+ # FIXME: Since we haven't got FFmpeg to actually return us not crap values,
+ # just return true here
+ true
+
return exitcode == 0
# IO.popen cmd do |i,o,e|
Please sign in to comment.
Something went wrong with that request. Please try again.