mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-26 22:23:17 -05:00
[http] Don't return zero-length ICY title metadata
This commit is contained in:
parent
9068c66dcd
commit
8261fb8e59
@ -660,6 +660,8 @@ metadata_packet_get(struct http_icy_metadata *metadata, AVFormatContext *fmtctx)
|
|||||||
|
|
||||||
metadata->title = strdup(ptr + 3);
|
metadata->title = strdup(ptr + 3);
|
||||||
}
|
}
|
||||||
|
else if (strlen(metadata->title) == 0)
|
||||||
|
metadata->title = NULL;
|
||||||
else
|
else
|
||||||
metadata->title = strdup(metadata->title);
|
metadata->title = strdup(metadata->title);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user