From d650fd21b12f64bf70acc66c0fb7813f77a1a1a4 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 2 Dec 2014 19:28:52 +0100 Subject: [PATCH] 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.) --- player/loadfile.c | 1 + 1 file changed, 1 insertion(+) diff --git a/player/loadfile.c b/player/loadfile.c index bb5a27af07..5b04451667 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -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; }