mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
hlsdemux: m3u8: clear the list of media files before updating the playlist
This commit is contained in:
parent
e13ef203e3
commit
650142f054
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue