1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-27 10:03:32 +00:00

stream_lavf: prefix icy metadata with "icy-"

ICY metadata is not always of good quality, and especially if there are
proper tags. We don't want the ICY metadata override the tags.
This commit is contained in:
wm4 2014-02-06 13:40:09 +01:00
parent ef68cfcc8a
commit 5693b5ae16

View File

@ -259,7 +259,7 @@ out:
static void append_meta(char ***info, int *num_info, bstr name, bstr val)
{
if (name.len && val.len) {
char *cname = talloc_asprintf(*info, "%.*s", BSTR_P(name));
char *cname = talloc_asprintf(*info, "icy-%.*s", BSTR_P(name));
char *cval = talloc_asprintf(*info, "%.*s", BSTR_P(val));
MP_TARRAY_APPEND(NULL, *info, *num_info, cname);
MP_TARRAY_APPEND(NULL, *info, *num_info, cval);