From d5f79b8529997646fd2a79f024b9253984ee164e Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Fri, 4 Sep 2015 18:40:18 -0300 Subject: [PATCH] hls: if media sequence is not specified, use 0 Allows playlists that are missing the mediasequence information to be correctly parsed. If the playlist was updated without reseting the mediasequence it would constantly increase over subsequent updates, leading to issues during playback. --- ext/hls/m3u8.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/hls/m3u8.c b/ext/hls/m3u8.c index 0855b42238..20fdf32142 100644 --- a/ext/hls/m3u8.c +++ b/ext/hls/m3u8.c @@ -409,6 +409,7 @@ gst_m3u8_update (GstM3U8Client * client, GstM3U8 * self, gchar * data, self->files = NULL; } client->duration = GST_CLOCK_TIME_NONE; + self->mediasequence = 0; /* By default, allow caching */ self->allowcache = TRUE;