From 912e4ef0f9299d3e5494502aeaf9e05762a43155 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 13 Sep 2002 21:41:31 +0000 Subject: [PATCH] Maybe this fixes rhythmbox again Original commit message from CVS: Maybe this fixes rhythmbox again --- gst/gstpad.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gst/gstpad.c b/gst/gstpad.c index 574ccb669b..2053e1e4b8 100644 --- a/gst/gstpad.c +++ b/gst/gstpad.c @@ -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));