0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

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:
wm4 2014-12-02 19:28:52 +01:00
parent 980f3ea071
commit d650fd21b1

View File

@ -966,6 +966,7 @@ static void play_current_file(struct MPContext *mpctx)
if (opts->stream_dump && opts->stream_dump[0]) {
stream_dump(mpctx);
mpctx->error_playing = 1;
goto terminate_playback;
}