From 37aee2304a69eff4dba84a106e52c38dc1839a37 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 14 Mar 2016 16:34:09 +0100 Subject: command: dump tracklist if sub-add is run with the "cached" flag mp_switch_track() doesn't do it automatically for whatever reason, so do it here. --- player/command.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'player/command.c') diff --git a/player/command.c b/player/command.c index d2a8308a58..068ab7cf5e 100644 --- a/player/command.c +++ b/player/command.c @@ -4827,6 +4827,8 @@ int run_command(struct MPContext *mpctx, struct mp_cmd *cmd, struct mpv_node *re struct track *t = find_track_with_url(mpctx, type, cmd->args[0].v.s); if (t) { mp_switch_track(mpctx, t->type, t, FLAG_MARK_SELECTION); + if (mpctx->playback_initialized) + print_track_list(mpctx, "Track switched:"); return 0; } } -- cgit v1.2.3