diff options
author | wm4 <wm4@nowhere> | 2016-03-26 20:14:02 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-03-26 20:14:02 +0100 |
commit | 4470976cee12eb7d3d40d5843a5508d2a33a81d7 (patch) | |
tree | 95d80e3ab180521016affade3daffa16d2e07a13 | |
parent | 447da032a3ee3fab6a97171293186b6e3816fe83 (diff) | |
download | mpv-4470976cee12eb7d3d40d5843a5508d2a33a81d7.tar.bz2 mpv-4470976cee12eb7d3d40d5843a5508d2a33a81d7.tar.xz |
player: fix --stream-dump exit code
Inverted condition due to weird semantics after a refactor some time
ago. Fixes #2848.
-rw-r--r-- | player/loadfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/player/loadfile.c b/player/loadfile.c index b1e9cd2057..5cc1ef5f77 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -1027,7 +1027,7 @@ reopen_file: goto terminate_playback; if (opts->stream_dump && opts->stream_dump[0]) { - if (stream_dump(mpctx, mpctx->stream_open_filename) < 0) + if (stream_dump(mpctx, mpctx->stream_open_filename) >= 0) mpctx->error_playing = 1; goto terminate_playback; } |