mirror of https://github.com/mpv-player/mpv
player: don't signal an error if --stream-dump is used
The player thinks an error happened because no audio or video was played after finishing the file, but this obviously makes no sense with stream dumping. (error_playing follows the client API convention that negative values are errors.)
This commit is contained in:
parent
980f3ea071
commit
d650fd21b1
|
@ -966,6 +966,7 @@ static void play_current_file(struct MPContext *mpctx)
|
||||||
|
|
||||||
if (opts->stream_dump && opts->stream_dump[0]) {
|
if (opts->stream_dump && opts->stream_dump[0]) {
|
||||||
stream_dump(mpctx);
|
stream_dump(mpctx);
|
||||||
|
mpctx->error_playing = 1;
|
||||||
goto terminate_playback;
|
goto terminate_playback;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue