summaryrefslogtreecommitdiff
path: root/ext/hls/m3u8.c
diff options
context:
space:
mode:
authorThiago Santos <thiagoss@osg.samsung.com>2015-09-04 18:40:18 -0300
committerThiago Santos <thiagoss@osg.samsung.com>2015-10-14 21:33:27 -0300
commitd5f79b8529997646fd2a79f024b9253984ee164e (patch)
tree65eb0c58196958b6af5121b3c72e4714a3c966f4 /ext/hls/m3u8.c
parentf78b37e6b2ed2424dfebbd9e4d210aab0af9ab25 (diff)
downloadgstreamer-plugins-bad-d5f79b8529997646fd2a79f024b9253984ee164e.tar.gz
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.
Diffstat (limited to 'ext/hls/m3u8.c')
-rw-r--r--ext/hls/m3u8.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/hls/m3u8.c b/ext/hls/m3u8.c
index 0855b4223..20fdf3214 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;