Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 4cbe28e

Browse files
committed
Don’t allow input stream to be probed as they then get consumed
1 parent f64edb1 commit 4cbe28e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/processor.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@ var nlRegexp = /\r\n|\r|\n/g;
2121
* @private
2222
*/
2323
function runFfprobe(command) {
24-
command.ffprobe(0, function(err, data) {
24+
const inputProbeIndex = 0;
25+
if (command._inputs[inputProbeIndex].isStream) {
26+
// Don't probe input streams as this will consume them
27+
return;
28+
}
29+
command.ffprobe(inputProbeIndex, function(err, data) {
2530
command._ffprobeData = data;
2631
});
2732
}

0 commit comments

Comments
 (0)