diff options
author | wm4 <wm4@nowhere> | 2015-01-09 23:56:49 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-01-09 23:56:49 +0100 |
commit | 23e4a8ce7f833b551b808a850c1be759df4ab2ef (patch) | |
tree | d6f5a63e38d7ef94d7cd168890a4b003c80204b3 /player/loadfile.c | |
parent | 3c3883ebe1120cb29cb3b64f9415df513ab85cfa (diff) | |
download | mpv-23e4a8ce7f833b551b808a850c1be759df4ab2ef.tar.bz2 mpv-23e4a8ce7f833b551b808a850c1be759df4ab2ef.tar.xz |
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.
Diffstat (limited to 'player/loadfile.c')
-rw-r--r-- | player/loadfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) |