mirror of https://github.com/mpv-player/mpv
command: fix inverted condition in sub-reload command
Fixes #3586 (probably). Untested.
This commit is contained in:
parent
0fe3e9ca5e
commit
b6cbf74518
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue