Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix for newer ffmpeg

The ffmpeg shipped with debian (unstable)
ffmpeg version 0.8.4-6:0.8.4-1, Copyright (c) 2000-2012 the Libav developers
ii  ffmpeg             6:0.8.4-1      amd64          Multimedia player, server, encoder and tr

changes slightly the output from '[q]' to 'ctrl-c',
this breaks the emission of the onCodecData signal.

this simple patch extends the regex to match for both cases.

Signed-off-by: Niv Sardi <xaiki@evilgiggle.com>
  • Loading branch information...
commit 7b24f69c3dc917ee7db8676ab135aef6f0276fc3 1 parent 6521924
@xaiki xaiki authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/processor.js
View
2  lib/processor.js
@@ -407,7 +407,7 @@ exports = module.exports = function Processor(command) {
codecObject.video = video[1];
}
- var codecInfoPassed = /Press \[q\] to stop/.test(stderrString);
+ var codecInfoPassed = /Press (\[q\]|ctrl-c) to stop/.test(stderrString);
if (codecInfoPassed) {
this.options.onCodecData(codecObject);
this.options.onCodecData = null;
Please sign in to comment.
Something went wrong with that request. Please try again.