dashdemux: fix coredump issue with external AdaptationSet

fix wrong AdaptationSet list iterator

https://bugzilla.gnome.org/show_bug.cgi?id=790812
This commit is contained in:
Jun Xie 2017-11-25 15:35:05 +08:00 committed by Nicolas Dufresne
parent 6a5bae5343
commit 77321f62dd

View file

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