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
1 changed files with 1 additions and 0 deletions

View File

@ -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;
} }