[http] Title and artist were swapped when reading ICY packet metadata

This commit is contained in:
ejurgensen 2015-11-29 00:55:30 +01:00
parent 90e09736f0
commit 7a4ce2f68d

View File

@ -386,10 +386,10 @@ metadata_packet_get(struct http_icy_metadata *metadata, AVFormatContext *fmtctx)
if (ptr)
{
*ptr = '\0';
metadata->title = strdup(metadata->title);
metadata->artist = strdup(metadata->title);
*ptr = ' ';
metadata->artist = strdup(ptr + 3);
metadata->title = strdup(ptr + 3);
}
else
metadata->title = strdup(metadata->title);