hlsdemux: Ignore empty lines in the playlist
Based on a patch by Andoni Morales.
This commit is contained in:
parent
65c1faf553
commit
e40b72bc9b
@ -273,8 +273,7 @@ gst_m3u8_update (GstM3U8 * self, gchar * data, gboolean * updated)
|
|||||||
if (r)
|
if (r)
|
||||||
*r = '\0';
|
*r = '\0';
|
||||||
|
|
||||||
if (data[0] != '#') {
|
if (data[0] != '#' && data[0] != '\0') {
|
||||||
|
|
||||||
if (duration <= 0 && list == NULL) {
|
if (duration <= 0 && list == NULL) {
|
||||||
GST_LOG ("%s: got line without EXTINF or EXTSTREAMINF, dropping", data);
|
GST_LOG ("%s: got line without EXTINF or EXTSTREAMINF, dropping", data);
|
||||||
goto next_line;
|
goto next_line;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user