command: remove an extra space from track formatting

This commit is contained in:
Guido Cella 2024-10-24 18:45:27 +02:00 committed by Kacper Michajłow
parent 4598ceb3f2
commit 5c59f8accc
1 changed files with 2 additions and 2 deletions

View File

@ -2109,11 +2109,11 @@ char *mp_format_track_metadata(void *ctx, struct track *t, bool add_lang)
bstr dst = {0};
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;
bstr_xappend0(ctx, &dst, " (");
bstr_xappend0(ctx, &dst, "(");
if (add_lang && t->lang)
bstr_xappend_asprintf(ctx, &dst, "%s ", t->lang);