Permalink
Browse files

Merge pull request #77 from cjbest/master

Kill ffmpeg process when outputs stream closes
  • Loading branch information...
2 parents 3f7ee7a + ffa0d8d commit a59f23f88121066a1485b59a0b833dfa9926eed3 @schaermu schaermu committed Oct 4, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/processor.js
View
@@ -195,6 +195,12 @@ exports = module.exports = function Processor(command) {
}
cb_();
});
+
+ stream.on("close", function()
+ {
+ options.logger.debug("Output stream closed, killing ffmpgeg process");
+ ffmpegProc.kill();
+ });
});
};

0 comments on commit a59f23f

Please sign in to comment.