mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 21:18:52 +00:00
hlsdemux: Ignore empty lines in the playlist
Based on a patch by Andoni Morales.
This commit is contained in:
parent
65c1faf553
commit
e40b72bc9b
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue