From 7e16eb73de64f8d2c8c968e76e5b0de06b96c4ab Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 19 Dec 2002 19:45:13 +0000 Subject: [PATCH] Delete chains only once.. Original commit message from CVS: Delete chains only once.. --- gst/schedulers/gstoptimalscheduler.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gst/schedulers/gstoptimalscheduler.c b/gst/schedulers/gstoptimalscheduler.c index 76ab0ef28d..75c31d205e 100644 --- a/gst/schedulers/gstoptimalscheduler.c +++ b/gst/schedulers/gstoptimalscheduler.c @@ -414,10 +414,10 @@ merge_chains (GstOptSchedulerChain *chain1, GstOptSchedulerChain *chain2) walk = chain2->groups; while (walk) { GstOptSchedulerGroup *group = (GstOptSchedulerGroup *) walk->data; + walk = g_slist_next (walk); group->chain = NULL; add_to_chain (chain1, group); - walk = g_slist_next (walk); } delete_chain (chain2); @@ -1138,7 +1138,6 @@ gst_opt_scheduler_remove_element (GstScheduler *sched, GstElement *element) chain = group->chain; if (chain) { remove_from_chain (chain, group); - delete_chain (chain); } delete_group (group); }