summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/command.c')
-rw-r--r--player/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/command.c b/player/command.c
index d6a8e53ad4..b73e5e863c 100644
--- a/player/command.c
+++ b/player/command.c
@@ -4024,7 +4024,7 @@ int run_command(MPContext *mpctx, mp_cmd_t *cmd)
}
case MP_CMD_SUB_ADD: {
- if (!mpctx->num_sources)
+ if (!mpctx->playing)
return -1;
struct track *sub = mp_add_subtitles(mpctx, cmd->args[0].v.s);
if (!sub)