diff options
author | wm4 <wm4@nowhere> | 2014-10-20 23:33:46 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-10-20 23:33:46 +0200 |
commit | a67be5dd05302e29f03f34e8758a779cb21c487c (patch) | |
tree | 674a756e2d8a5f58e724ab1ea6b4ecaefa06fdf6 /player | |
parent | d38e36b98f249ae1fd30fa9e7a454b784a9b014d (diff) | |
download | mpv-a67be5dd05302e29f03f34e8758a779cb21c487c.tar.bz2 mpv-a67be5dd05302e29f03f34e8758a779cb21c487c.tar.xz |
command: allow sub_add at an earlier stage
Diffstat (limited to 'player')
-rw-r--r-- | player/command.c | 2 |
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) |