mirror of
https://github.com/mpv-player/mpv
synced 2024-12-26 09:02:38 +00:00
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.
This commit is contained in:
parent
3c3883ebe1
commit
23e4a8ce7f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user