hlsdemux: Ignore empty lines in the playlist

Based on a patch by Andoni Morales.
This commit is contained in:
Sebastian Dröge 2014-02-12 18:49:13 +01:00
parent 65c1faf553
commit e40b72bc9b

View file

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