From b0ab53ea6abcabe13dbb74b38bc8335c059c4a59 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 5 Nov 2003 01:33:02 +0000 Subject: [PATCH] make gst_element_link work when connecting from a NULL-caps request pad Original commit message from CVS: make gst_element_link work when connecting from a NULL-caps request pad --- gst/gstelement.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/gstelement.c b/gst/gstelement.c index 2b0aaab..b0c352c 100644 --- a/gst/gstelement.c +++ b/gst/gstelement.c @@ -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) { -- 2.7.4