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:
Wim Taymans 2002-12-09 20:33:27 +00:00
parent fff07e9420
commit f07281a771

View file

@ -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);
}