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:
wm4 2016-03-26 20:14:02 +01:00
parent 447da032a3
commit 4470976cee
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}