mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-14 00:05:03 -05:00
[http] Title and artist were swapped when reading ICY packet metadata
This commit is contained in:
parent
90e09736f0
commit
7a4ce2f68d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user