diff options
author | wm4 <wm4@nowhere> | 2016-09-26 20:12:59 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-09-26 20:12:59 +0200 |
commit | b6cbf74518a751e0982c2c514f16c96b5736dbad (patch) | |
tree | 37c14fbc21c8003702b4123b0eecc454cc450fe9 /player | |
parent | 0fe3e9ca5e8e42761424b37d67b46e12514f240f (diff) | |
download | mpv-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.c | 2 |
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; } |