Skip to content

Commit

Permalink
Don’t allow input stream to be probed as they then get consumed
Browse files Browse the repository at this point in the history
  • Loading branch information
rhodgkins committed Apr 23, 2017
1 parent f64edb1 commit 4cbe28e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/processor.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ var nlRegexp = /\r\n|\r|\n/g;
* @private
*/
function runFfprobe(command) {
command.ffprobe(0, function(err, data) {
const inputProbeIndex = 0;
if (command._inputs[inputProbeIndex].isStream) {
// Don't probe input streams as this will consume them
return;
}
command.ffprobe(inputProbeIndex, function(err, data) {
command._ffprobeData = data;
});
}
Expand Down

0 comments on commit 4cbe28e

Please sign in to comment.