mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
Some sanity checking for when the element was removed from the pipeline.
Original commit message from CVS: Some sanity checking for when the element was removed from the pipeline.
This commit is contained in:
parent
0694a337a1
commit
7e1a122599
1 changed files with 6 additions and 3 deletions
|
@ -324,9 +324,12 @@ gst_basic_scheduler_chain_wrapper (int argc, char *argv[])
|
|||
|
||||
/* due to oddities in the cothreads code, when this function returns it will
|
||||
* switch to the main cothread. thus, we need to unlock the current element. */
|
||||
if (SCHED (element)->current->post_run_func)
|
||||
SCHED (element)->current->post_run_func (SCHED (element)->current);
|
||||
SCHED (element)->current = NULL;
|
||||
if (SCHED (element)) {
|
||||
if (SCHED (element)->current && SCHED (element)->current->post_run_func) {
|
||||
SCHED (element)->current->post_run_func (SCHED (element)->current);
|
||||
}
|
||||
SCHED (element)->current = NULL;
|
||||
}
|
||||
|
||||
GST_DEBUG_LEAVE ("(%d,'%s')", argc, name);
|
||||
gst_object_unref (GST_OBJECT (element));
|
||||
|
|
Loading…
Reference in a new issue