mirror of https://github.com/mpv-player/mpv
command: remove an extra space from track formatting
This commit is contained in:
parent
4598ceb3f2
commit
5c59f8accc
|
@ -2109,11 +2109,11 @@ char *mp_format_track_metadata(void *ctx, struct track *t, bool add_lang)
|
||||||
bstr dst = {0};
|
bstr dst = {0};
|
||||||
|
|
||||||
if (t->title)
|
if (t->title)
|
||||||
bstr_xappend_asprintf(ctx, &dst, " '%s'", t->title);
|
bstr_xappend_asprintf(ctx, &dst, "'%s' ", t->title);
|
||||||
|
|
||||||
const char *codec = s ? s->codec->codec : NULL;
|
const char *codec = s ? s->codec->codec : NULL;
|
||||||
|
|
||||||
bstr_xappend0(ctx, &dst, " (");
|
bstr_xappend0(ctx, &dst, "(");
|
||||||
|
|
||||||
if (add_lang && t->lang)
|
if (add_lang && t->lang)
|
||||||
bstr_xappend_asprintf(ctx, &dst, "%s ", t->lang);
|
bstr_xappend_asprintf(ctx, &dst, "%s ", t->lang);
|
||||||
|
|
Loading…
Reference in New Issue