diff options
author | Thiago Santos <thiagoss@osg.samsung.com> | 2015-09-04 18:40:18 -0300 |
---|---|---|
committer | Thiago Santos <thiagoss@osg.samsung.com> | 2015-10-14 21:33:27 -0300 |
commit | d5f79b8529997646fd2a79f024b9253984ee164e (patch) | |
tree | 65eb0c58196958b6af5121b3c72e4714a3c966f4 /ext/hls/m3u8.c | |
parent | f78b37e6b2ed2424dfebbd9e4d210aab0af9ab25 (diff) | |
download | gstreamer-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.c | 1 |
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; |