Some extra debug info

Original commit message from CVS:
Some extra debug info
This commit is contained in:
Wim Taymans 2003-02-02 19:14:26 +00:00
parent eab16fcf18
commit b87dbe8c98

View file

@ -891,8 +891,9 @@ gst_opt_scheduler_get_wrapper (GstPad *srcpad)
} }
#endif #endif
/* if the scheduler interrupted, make sure we send an INTERRUPTED event to the /* if the scheduler interrupted, make sure we send an INTERRUPTED event to the
* > * loop based element */ * loop based element */
if (osched->state == GST_OPT_SCHEDULER_STATE_INTERRUPTED) { if (osched->state == GST_OPT_SCHEDULER_STATE_INTERRUPTED) {
GST_INFO (GST_CAT_SCHEDULING, "scheduler interrupted, return interrupt event");
return GST_BUFFER (gst_event_new (GST_EVENT_INTERRUPT)); return GST_BUFFER (gst_event_new (GST_EVENT_INTERRUPT));
} }
@ -1250,6 +1251,7 @@ gst_opt_scheduler_interrupt (GstScheduler *sched, GstElement *element)
{ {
GstOptScheduler *osched = GST_OPT_SCHEDULER_CAST (sched); GstOptScheduler *osched = GST_OPT_SCHEDULER_CAST (sched);
GST_INFO (GST_CAT_SCHEDULING, "scheduler set interrupted state");
osched->state = GST_OPT_SCHEDULER_STATE_INTERRUPTED; osched->state = GST_OPT_SCHEDULER_STATE_INTERRUPTED;
} }
return TRUE; return TRUE;