gst/schedulers/entryscheduler.c: make resetting scheduler work twice in a row

Original commit message from CVS:
* gst/schedulers/entryscheduler.c: (gst_entry_scheduler_reset):
make resetting scheduler work twice in a row
This commit is contained in:
Benjamin Otte 2004-05-18 01:47:33 +00:00
parent 463361defb
commit 03e5b961dc
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2004-05-18 Benjamin Otte <in7y118@public.uni-hamburg.de>
* gst/schedulers/entryscheduler.c: (gst_entry_scheduler_reset):
make resetting scheduler work twice in a row
2004-05-18 Benjamin Otte <in7y118@public.uni-hamburg.de>
* gst/gstvalue.c: (gst_strtoll), (CREATE_SERIALIZATION),

View file

@ -756,8 +756,10 @@ gst_entry_scheduler_reset (GstScheduler * sched)
}
#endif
do_cothread_context_destroy (GST_ENTRY_SCHEDULER (sched)->context);
GST_ENTRY_SCHEDULER (sched)->context = NULL;
if (GST_ENTRY_SCHEDULER (sched)->context) {
do_cothread_context_destroy (GST_ENTRY_SCHEDULER (sched)->context);
GST_ENTRY_SCHEDULER (sched)->context = NULL;
}
}
static CothreadPrivate *