hlsdemux: m3u8: clear the list of media files before updating the playlist

This commit is contained in:
Andoni Morales Alastruey 2011-04-02 01:10:37 +02:00 committed by Sebastian Dröge
parent e13ef203e3
commit 650142f054

View file

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