[http] Don't return zero-length ICY title metadata

This commit is contained in:
ejurgensen 2020-02-19 23:03:50 +01:00
parent 9068c66dcd
commit 8261fb8e59

View File

@ -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);
} }