Permalink
Browse files

Merge branch 'master' of github.com:leonid-shevtsov/headless

  • Loading branch information...
2 parents 0f57868 + 22784a9 commit 6531c60606d1b2a90596e3fea939f686e94a2de8 @leonid-shevtsov committed Mar 29, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/headless/video/video_recorder.rb
@@ -23,7 +23,9 @@ def capture_running?
def start_capture
CliUtil.fork_process("#{CliUtil.path_to('ffmpeg')} -y -r 30 -g 600 -s #{@dimensions} -f x11grab -i :#{@display} -vcodec #{@codec} #{@tmp_file_path}", @pid_file_path, @log_file_path)
at_exit do
+ exit_status = $!.status if $!.is_a?(SystemExit)
stop_and_discard
+ exit exit_status if exit_status
end
end

0 comments on commit 6531c60

Please sign in to comment.