command: allow sub_add at an earlier stage

This commit is contained in:
wm4 2014-10-20 23:33:46 +02:00
parent d38e36b98f
commit a67be5dd05
1 changed files with 1 additions and 1 deletions

View File

@ -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)