From: Andoni Morales Alastruey Date: Fri, 1 Apr 2011 23:10:37 +0000 (+0200) Subject: hlsdemux: m3u8: clear the list of media files before updating the playlist X-Git-Tag: 1.19.3~507^2~16050^2~383 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=650142f0549ffe62f249e78084d038abcc574980;p=platform%2Fupstream%2Fgstreamer.git hlsdemux: m3u8: clear the list of media files before updating the playlist --- diff --git a/gst/hls/m3u8.c b/gst/hls/m3u8.c index 9d387ef460..5bdbda1fb0 100644 --- a/gst/hls/m3u8.c +++ b/gst/hls/m3u8.c @@ -205,6 +205,12 @@ gst_m3u8_update (GstM3U8 * self, gchar * data, gboolean * updated) g_free (self->last_data); self->last_data = data; + if (self->files) { + g_list_foreach (self->files, (GFunc) gst_m3u8_media_file_free, NULL); + g_list_free (self->files); + self->files = NULL; + } + list = NULL; duration = -1; title = NULL;