+2005-02-04 Andy Wingo <wingo@pobox.com>
+
+ * gst/gstelement.c (gst_element_get_compatible_pad_template): Fix
+ the debugging on whether the caps are compatible.
+
2005-02-03 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* docs/manual/basics-elements.xml:
GST_CAT_LOG (GST_CAT_CAPS,
"checking pad template %s", padtempl->name_template);
if (padtempl->direction != compattempl->direction) {
+ gboolean is_empty;
+
GST_CAT_DEBUG (GST_CAT_CAPS,
"compatible direction: found %s pad template \"%s\"",
padtempl->direction == GST_PAD_SRC ? "src" : "sink",
intersection = gst_caps_intersect (GST_PAD_TEMPLATE_CAPS (compattempl),
GST_PAD_TEMPLATE_CAPS (padtempl));
+ is_empty = gst_caps_is_empty (intersection);
+
GST_CAT_DEBUG (GST_CAT_CAPS, "caps are %scompatible",
- (intersection ? "" : "not "));
+ is_empty ? "not " : "");
- if (!gst_caps_is_empty (intersection))
+ if (!is_empty)
newtempl = padtempl;
gst_caps_free (intersection);
if (newtempl)