From e14df5c4f4e57a860222156b2f6124824b90c216 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 3 Jun 2015 21:50:37 +0200 Subject: player: print a message along with track list Slightly less strange. --- player/command.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'player/command.c') diff --git a/player/command.c b/player/command.c index 7715cfb0d3..5148510b1f 100644 --- a/player/command.c +++ b/player/command.c @@ -4568,7 +4568,7 @@ int run_command(struct MPContext *mpctx, struct mp_cmd *cmd, struct mpv_node *re if (lang && lang[0]) t->lang = talloc_strdup(t, lang); if (mpctx->playback_initialized) - print_track_list(mpctx); + print_track_list(mpctx, "Track added:"); break; } @@ -4580,7 +4580,7 @@ int run_command(struct MPContext *mpctx, struct mp_cmd *cmd, struct mpv_node *re return -1; mp_remove_track(mpctx, t); if (mpctx->playback_initialized) - print_track_list(mpctx); + print_track_list(mpctx, "Track removed:"); break; } @@ -4597,7 +4597,7 @@ int run_command(struct MPContext *mpctx, struct mp_cmd *cmd, struct mpv_node *re } if (nt) { mp_switch_track(mpctx, nt->type, nt, 0); - print_track_list(mpctx); + print_track_list(mpctx, "Reloaded:"); return 0; } return -1; @@ -4617,7 +4617,7 @@ int run_command(struct MPContext *mpctx, struct mp_cmd *cmd, struct mpv_node *re mp_switch_track(mpctx, STREAM_SUB, s, 0); if (mpctx->playback_initialized) - print_track_list(mpctx); + print_track_list(mpctx, "Track list:\n"); } break; } -- cgit v1.2.3