Set the right scheduler on the pads of decoupled elements.

Original commit message from CVS:
Set the right scheduler on the pads of decoupled elements.
This commit is contained in:
Wim Taymans 2002-06-05 18:10:55 +00:00
parent b7b63ff4cd
commit be30fb14fd

View file

@ -589,6 +589,7 @@ gst_basic_scheduler_cothreaded_chain (GstBin * bin, GstSchedulerChain * chain)
GST_DEBUG_PAD_NAME (peerpad));
GST_RPAD_GETHANDLER (peerpad) = GST_RPAD_GETFUNC (peerpad);
}
gst_pad_set_scheduler (peerpad, GST_SCHEDULER (chain->sched));
}
}
}
@ -1115,10 +1116,6 @@ static gboolean
gst_basic_scheduler_interrupt (GstScheduler *sched, GstElement *element)
{
if (GST_FLAG_IS_SET (element, GST_ELEMENT_DECOUPLED)) {
g_warning ("interrupt decoupled element");
}
GST_FLAG_SET (element, GST_ELEMENT_COTHREAD_STOPPING);
do_switch_to_main (sched);