command: fix inverted condition in sub-reload command

Fixes #3586 (probably). Untested.
This commit is contained in:
wm4 2016-09-26 20:12:59 +02:00
parent 0fe3e9ca5e
commit b6cbf74518
1 changed files with 1 additions and 1 deletions

View File

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