Skip to content
This repository
Browse code

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
Niv Sardi authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/processor.js
2  lib/processor.js
@@ -407,7 +407,7 @@ exports = module.exports = function Processor(command) {
407 407
       codecObject.video = video[1];
408 408
     }
409 409
 
410  
-    var codecInfoPassed = /Press \[q\] to stop/.test(stderrString);
  410
+    var codecInfoPassed = /Press (\[q\]|ctrl-c) to stop/.test(stderrString);
411 411
     if (codecInfoPassed) {
412 412
       this.options.onCodecData(codecObject);
413 413
       this.options.onCodecData = null;

0 notes on commit 7b24f69

Please sign in to comment.
Something went wrong with that request. Please try again.