From 23e4a8ce7f833b551b808a850c1be759df4ab2ef Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 9 Jan 2015 23:56:49 +0100 Subject: player: change stream list terminal output Move the stream selection marker "(+)" to the beginning, and drop the "[stream]" prefix. Make the edition output line up with it too. --- player/loadfile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'player/loadfile.c') diff --git a/player/loadfile.c b/player/loadfile.c index 96e34f5a95..5be2abb806 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -119,7 +119,7 @@ static void print_stream(struct MPContext *mpctx, struct track *t) break; } char b[2048] = {0}; - APPEND(b, "[stream] %-5s %3s", tname, t->selected ? "(+)" : ""); + APPEND(b, " %3s %-5s", t->selected ? "(+)" : "", tname); APPEND(b, " --%s=%d", selopt, t->user_tid); if (t->lang && langopt) APPEND(b, " --%s=%s", langopt, t->lang); @@ -147,7 +147,7 @@ void update_demuxer_properties(struct MPContext *mpctx) for (int n = 0; n < demuxer->num_editions; n++) { struct demux_edition *edition = &demuxer->editions[n]; char b[128] = {0}; - APPEND(b, "[edition] %3s --edition=%d", + APPEND(b, " %3s --edition=%d", n == demuxer->edition ? "(+)" : "", n); char *name = mp_tags_get_str(edition->metadata, "title"); if (name) -- cgit v1.2.3