From 4470976cee12eb7d3d40d5843a5508d2a33a81d7 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 26 Mar 2016 20:14:02 +0100 Subject: [PATCH] player: fix --stream-dump exit code Inverted condition due to weird semantics after a refactor some time ago. Fixes #2848. --- player/loadfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }