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 authored and Alessandro Ghedini committed 2014-12-07 23:49:55 +01:00
1 parent 18b15a436f
commit 47ec404a52
1 file changed
+1
+1
View File
@@ -967,6 +967,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;
}