From a67be5dd05302e29f03f34e8758a779cb21c487c Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 20 Oct 2014 23:33:46 +0200 Subject: command: allow sub_add at an earlier stage --- player/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3