diff options
Diffstat (limited to 'player/command.c')
-rw-r--r-- | player/command.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/player/command.c b/player/command.c index 4c46203ab4..efd1304720 100644 --- a/player/command.c +++ b/player/command.c @@ -5522,7 +5522,7 @@ static void cmd_track_add(void *p) struct MPContext *mpctx = cmd->mpctx; int type = *(int *)cmd->priv; - if (!mpctx->playing) { + if (mpctx->stop_play) { cmd->success = false; return; } @@ -5623,7 +5623,7 @@ static void cmd_rescan_external_files(void *p) struct mp_cmd_ctx *cmd = p; struct MPContext *mpctx = cmd->mpctx; - if (!mpctx->playing) { + if (mpctx->stop_play) { cmd->success = false; return; } |