summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-09-26 20:12:59 +0200
committerwm4 <wm4@nowhere>2016-09-26 20:12:59 +0200
commitb6cbf74518a751e0982c2c514f16c96b5736dbad (patch)
tree37c14fbc21c8003702b4123b0eecc454cc450fe9 /player
parent0fe3e9ca5e8e42761424b37d67b46e12514f240f (diff)
downloadmpv-b6cbf74518a751e0982c2c514f16c96b5736dbad.tar.bz2
mpv-b6cbf74518a751e0982c2c514f16c96b5736dbad.tar.xz
command: fix inverted condition in sub-reload command
Fixes #3586 (probably). Untested.
Diffstat (limited to 'player')
-rw-r--r--player/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/command.c b/player/command.c
index 6239aa5a52..be6b31d1b3 100644
--- a/player/command.c
+++ b/player/command.c
@@ -5249,7 +5249,7 @@ int run_command(struct MPContext *mpctx, struct mp_cmd *cmd, struct mpv_node *re
case MP_CMD_SUB_RELOAD:
case MP_CMD_AUDIO_RELOAD: {
- if (mpctx->playback_initialized) {
+ if (!mpctx->playback_initialized) {
MP_ERR(mpctx, "Cannot reload while not initialized.\n");
return -1;
}