summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun Xie <jun.xie@samsung.com>2017-11-25 15:35:05 +0800
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2017-12-06 15:23:30 -0500
commit6fc18cd450fa492f56d4536949c675f852ccb7da (patch)
tree7af229b64b7cc418791e805e549839acb7f0a72a
parentbfce027d81e60d02fdd1ed64516587c9fd67d953 (diff)
downloadgstreamer-plugins-bad-6fc18cd450fa492f56d4536949c675f852ccb7da.tar.gz
dashdemux: fix coredump issue with external AdaptationSet
fix wrong AdaptationSet list iterator https://bugzilla.gnome.org/show_bug.cgi?id=790812
-rw-r--r--ext/dash/gstmpdparser.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/dash/gstmpdparser.c b/ext/dash/gstmpdparser.c
index dab6c9835..bdfec3e84 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;
}