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.
This commit is contained in:
Thiago Santos 2015-09-04 18:40:18 -03:00
parent f78b37e6b2
commit d5f79b8529

View file

@ -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;