Destroy cothreads first before destroying context

Original commit message from CVS:
Destroy cothreads first before destroying context
This commit is contained in:
Wim Taymans 2002-12-20 18:49:17 +00:00
parent 910356a839
commit 4a63ac4d02

View file

@ -1078,6 +1078,20 @@ gst_opt_scheduler_reset (GstScheduler *sched)
{
#ifdef USE_COTHREADS
GstOptScheduler *osched = GST_OPT_SCHEDULER_CAST (sched);
GSList *chains = osched->chains;
while (chains) {
GstOptSchedulerChain *chain = (GstOptSchedulerChain *) chains->data;
GSList *groups = chain->groups;
while (groups) {
GstOptSchedulerGroup *group = (GstOptSchedulerGroup *) groups->data;
destroy_group_scheduler (group);
groups = groups->next;
}
chains = chains->next;
}
if (osched->context) {
do_cothread_context_destroy (osched->context);