mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
Delete chains only once..
Original commit message from CVS: Delete chains only once..
This commit is contained in:
parent
61763adf68
commit
7e16eb73de
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue