diff --git a/src/http.c b/src/http.c index 69da96e5..09caddb2 100644 --- a/src/http.c +++ b/src/http.c @@ -660,6 +660,8 @@ metadata_packet_get(struct http_icy_metadata *metadata, AVFormatContext *fmtctx) metadata->title = strdup(ptr + 3); } + else if (strlen(metadata->title) == 0) + metadata->title = NULL; else metadata->title = strdup(metadata->title); }