mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-15 22:01:27 +00:00
Destroy cothreads first before destroying context
Original commit message from CVS: Destroy cothreads first before destroying context
This commit is contained in:
parent
910356a839
commit
4a63ac4d02
1 changed files with 14 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue