removed another overzealous check, sigh
authorAndy Wingo <wingo@pobox.com>
Sat, 19 Jan 2002 15:22:19 +0000 (15:22 +0000)
committerAndy Wingo <wingo@pobox.com>
Sat, 19 Jan 2002 15:22:19 +0000 (15:22 +0000)
Original commit message from CVS:
removed another overzealous check, sigh

gst/gstpad.c

index 00dbd2b..bfa3196 100644 (file)
@@ -617,10 +617,7 @@ gst_pad_connect_filtered (GstPad *srcpad, GstPad *sinkpad, GstCaps *filtercaps)
     if (GST_FLAG_IS_SET (GST_PAD_PARENT (realsink), GST_ELEMENT_DECOUPLED))
       num_decoupled++;
 
-    if (realsrc->sched == realsink->sched && num_decoupled != 0) {
-      g_warning ("cannot connect pads from decoupled elements with the same sched\n");
-      return FALSE;
-    } else if (realsrc->sched != realsink->sched && num_decoupled != 1) {
+    if (realsrc->sched != realsink->sched && num_decoupled != 1) {
       g_warning ("connecting pads with different scheds requires exactly one decoupled element (queue)\n");
       return FALSE;
     }