From b6cbf74518a751e0982c2c514f16c96b5736dbad Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 26 Sep 2016 20:12:59 +0200 Subject: command: fix inverted condition in sub-reload command Fixes #3586 (probably). Untested. --- player/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player/command.c') 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; } -- cgit v1.2.3