From e40b72bc9bae30742b78cac3dfdbfd89adc4ed8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 12 Feb 2014 18:49:13 +0100 Subject: [PATCH] hlsdemux: Ignore empty lines in the playlist Based on a patch by Andoni Morales. --- ext/hls/m3u8.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;