diff --git a/ext/hls/m3u8.c b/ext/hls/m3u8.c index fe89c0bbf6..771ab1e4d8 100644 --- a/ext/hls/m3u8.c +++ b/ext/hls/m3u8.c @@ -273,8 +273,7 @@ gst_m3u8_update (GstM3U8 * self, gchar * data, gboolean * updated) if (r) *r = '\0'; - if (data[0] != '#') { - + if (data[0] != '#' && data[0] != '\0') { if (duration <= 0 && list == NULL) { GST_LOG ("%s: got line without EXTINF or EXTSTREAMINF, dropping", data); goto next_line;