mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-15 13:53:19 +00:00
Don't remove an element from its chain if it doesn't have a chain
Original commit message from CVS: Don't remove an element from its chain if it doesn't have a chain
This commit is contained in:
parent
7f09b68704
commit
7ec295a0cd
1 changed files with 4 additions and 2 deletions
|
@ -1042,8 +1042,10 @@ gst_basic_scheduler_remove_element (GstScheduler * sched, GstElement * element)
|
|||
chain = gst_basic_scheduler_find_chain (bsched, element);
|
||||
|
||||
/* remove it from its chain */
|
||||
gst_basic_scheduler_chain_remove_element (chain, element);
|
||||
|
||||
if (chain != NULL) {
|
||||
gst_basic_scheduler_chain_remove_element (chain, element);
|
||||
}
|
||||
|
||||
/* remove it from the list of elements */
|
||||
bsched->elements = g_list_remove (bsched->elements, element);
|
||||
bsched->num_elements--;
|
||||
|
|
Loading…
Reference in a new issue