Maybe this fixes rhythmbox again

Original commit message from CVS:
Maybe this fixes rhythmbox again
This commit is contained in:
Wim Taymans 2002-09-13 21:41:31 +00:00
parent 1612b83897
commit 912e4ef0f9

View file

@ -1020,9 +1020,12 @@ gst_pad_connect_filtered (GstPad *srcpad, GstPad *sinkpad, GstCaps *filtercaps)
/* now tell the scheduler, the schedulers on both paths have to be the same,
* so we can just take one */
if (src_sched && src_sched == sink_sched)
if (src_sched)
gst_scheduler_pad_connect (src_sched,
GST_PAD_CAST (realsrc), GST_PAD_CAST (realsink));
else if (sink_sched)
gst_scheduler_pad_connect (sink_sched,
GST_PAD_CAST (realsrc), GST_PAD_CAST (realsink));
GST_INFO (GST_CAT_PADS, "connected %s:%s and %s:%s",
GST_DEBUG_PAD_NAME (srcpad), GST_DEBUG_PAD_NAME (sinkpad));