make gst_element_link work when connecting from a NULL-caps request pad
authorBenjamin Otte <otte@gnome.org>
Wed, 5 Nov 2003 01:33:02 +0000 (01:33 +0000)
committerBenjamin Otte <otte@gnome.org>
Wed, 5 Nov 2003 01:33:02 +0000 (01:33 +0000)
Original commit message from CVS:
make gst_element_link work when connecting from a NULL-caps request pad

gst/gstelement.c

index 2b0aaab..b0c352c 100644 (file)
@@ -1295,8 +1295,8 @@ gst_element_get_compatible_pad_template (GstElement *element,
     if (padtempl->direction == GST_PAD_SRC &&
       compattempl->direction == GST_PAD_SINK) {
       GST_CAT_DEBUG (GST_CAT_CAPS, "compatible direction: found src pad template");
-      comp = gst_caps_is_always_compatible (GST_PAD_TEMPLATE_CAPS (padtempl),
-                                          GST_PAD_TEMPLATE_CAPS (compattempl));
+      comp = gst_caps_is_always_compatible (GST_PAD_TEMPLATE_CAPS (compattempl),
+                                          GST_PAD_TEMPLATE_CAPS (padtempl));
       GST_CAT_DEBUG (GST_CAT_CAPS, "caps are %scompatible", (comp ? "" : "not "));
     } else if (padtempl->direction == GST_PAD_SINK &&
               compattempl->direction == GST_PAD_SRC) {