+2004-03-05 Benjamin Otte <otte@gnome.org>
+
+ * gst/gstelement.c: (gst_element_get_compatible_pad_template):
+ check for empty intersection instead of NULL caps
+ (gst_element_get_compatible_pad_filtered):
+ remove old workaround that is only a bug nowadays
+
2004-03-05 Thomas Vander Stichele <thomas at apestaart dot org>
* gst/gstelement.c: (gst_element_error_full):
GST_CAT_DEBUG (GST_CAT_CAPS, "caps are %scompatible", (intersection ? "" : "not "));
- if (intersection)
+ if (!gst_caps_is_empty (intersection))
newtempl = padtempl;
gst_caps_free (intersection);
if (newtempl) break;
if (foundpad) return foundpad;
- /* FIXME: this is broken, but it's in here so autoplugging elements
- * that don't have caps on their source padtemplates (spider) can
- * link... */
- //g_warning("got here");
- //if (filtercaps == NULL) {
- templ = gst_pad_template_new ((gchar *) GST_PAD_NAME (pad),
- GST_PAD_DIRECTION (pad), GST_PAD_ALWAYS, gst_caps_new_any());
- foundpad = gst_element_request_compatible_pad (element, templ);
- gst_object_unref (GST_OBJECT (templ));
-
- if (foundpad) return foundpad;
- //}
-
GST_CAT_INFO_OBJECT (GST_CAT_ELEMENT_PADS, element,
"Could not find a compatible pad to link to %s:%s",
GST_DEBUG_PAD_NAME (pad));