diff options
author | wm4 <wm4@nowhere> | 2014-12-02 19:28:52 +0100 |
---|---|---|
committer | Alessandro Ghedini <alessandro@ghedini.me> | 2014-12-07 23:49:55 +0100 |
commit | 47ec404a52ae090f864e3c1669435fae36b4380b (patch) | |
tree | 5d9c1bf3c073fbf0c4b61366f586d0f70c70a42b | |
parent | 18b15a436f2b75f74a8babf3dd13e16b80b65824 (diff) | |
download | mpv-47ec404a52ae090f864e3c1669435fae36b4380b.tar.bz2 mpv-47ec404a52ae090f864e3c1669435fae36b4380b.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.)
-rw-r--r-- | player/loadfile.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/player/loadfile.c b/player/loadfile.c index 3c001ddeaa..aa457b3d08 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -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; } |