mirror of https://github.com/mpv-player/mpv
player: fix --stream-dump exit code
Inverted condition due to weird semantics after a refactor some time ago. Fixes #2848.
This commit is contained in:
parent
447da032a3
commit
4470976cee
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue