1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-24 04:08:19 +00:00

command: fix inverted condition in sub-reload command

Fixes  (probably). Untested.
This commit is contained in:
wm4 2016-09-26 20:12:59 +02:00
parent 0fe3e9ca5e
commit b6cbf74518

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