summaryrefslogtreecommitdiffstats
path: root/player/loadfile.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-12-02 19:28:52 +0100
committerwm4 <wm4@nowhere>2014-12-02 20:36:55 +0100
commitd650fd21b12f64bf70acc66c0fb7813f77a1a1a4 (patch)
treed7a548cb612d2530123694abc9999a964e200100 /player/loadfile.c
parent980f3ea071ea4214635af1b1b457ac1af953226f (diff)
downloadmpv-d650fd21b12f64bf70acc66c0fb7813f77a1a1a4.tar.bz2
mpv-d650fd21b12f64bf70acc66c0fb7813f77a1a1a4.tar.xz
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.)
Diffstat (limited to 'player/loadfile.c')
-rw-r--r--player/loadfile.c1
1 files changed, 1 insertions, 0 deletions
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;
}