From 77321f62dda61e506acbd6aee95c1d95f265ddc4 Mon Sep 17 00:00:00 2001 From: Jun Xie Date: Sat, 25 Nov 2017 15:35:05 +0800 Subject: [PATCH] dashdemux: fix coredump issue with external AdaptationSet fix wrong AdaptationSet list iterator https://bugzilla.gnome.org/show_bug.cgi?id=790812 --- ext/dash/gstmpdparser.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/dash/gstmpdparser.c b/ext/dash/gstmpdparser.c index 6dc3c34e96..edf553f228 100644 --- a/ext/dash/gstmpdparser.c +++ b/ext/dash/gstmpdparser.c @@ -3708,8 +3708,8 @@ gst_mpd_client_fetch_on_load_external_resources (GstMpdClient * client) gst_mpd_client_fetch_external_adaptation_set (client, period, adapt_set); - prev = l->prev; - period->AdaptationSets = g_list_delete_link (period->AdaptationSets, l); + prev = m->prev; + period->AdaptationSets = g_list_delete_link (period->AdaptationSets, m); gst_mpdparser_free_adaptation_set_node (adapt_set); adapt_set = NULL; @@ -3729,9 +3729,9 @@ gst_mpd_client_fetch_on_load_external_resources (GstMpdClient * client) /* Update our iterator to the first new adapt_set if any, or the next */ if (prev) - l = prev->next; + m = prev->next; else - l = period->AdaptationSets; + m = period->AdaptationSets; continue; }