mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
Destroying the cothread seems like a good idea here
Original commit message from CVS: Destroying the cothread seems like a good idea here
This commit is contained in:
parent
fff07e9420
commit
f07281a771
1 changed files with 5 additions and 2 deletions
|
@ -983,8 +983,11 @@ gst_basic_scheduler_reset (GstScheduler *sched)
|
|||
GList *elements = GST_BASIC_SCHEDULER_CAST (sched)->elements;
|
||||
|
||||
while (elements) {
|
||||
/* FIXME: wingo, do we need to destroy the cothreads here? */
|
||||
GST_ELEMENT_THREADSTATE (elements->data) = NULL;
|
||||
GstElement *element = GST_ELEMENT (elements->data);
|
||||
if (GST_ELEMENT_THREADSTATE (element)) {
|
||||
do_cothread_destroy (GST_ELEMENT_THREADSTATE (element));
|
||||
GST_ELEMENT_THREADSTATE (element) = NULL;
|
||||
}
|
||||
elements = g_list_next (elements);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue