summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-06-03 21:50:37 +0200
committerwm4 <wm4@nowhere>2015-06-03 21:50:37 +0200
commite14df5c4f4e57a860222156b2f6124824b90c216 (patch)
tree1c2839af394b26dd9bccbdb7aefcc7d7d67c71fa /player/command.c
parent52bd61d698792ea15e4f8c3e117785f137a551e7 (diff)
downloadmpv-e14df5c4f4e57a860222156b2f6124824b90c216.tar.bz2
mpv-e14df5c4f4e57a860222156b2f6124824b90c216.tar.xz
player: print a message along with track list
Slightly less strange.
Diffstat (limited to 'player/command.c')
-rw-r--r--player/command.c8
1 files changed, 4 insertions, 4 deletions
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;
}