2006-01-20 Wim Taymans <wim@fluendo.com>
+ * gst/gstpad.c: (gst_pad_link_check_compatible_unlocked):
+ Make it actually compile too..
+
+2006-01-20 Wim Taymans <wim@fluendo.com>
+
* gst/gstcaps.c:
Clarify behaviour of _is_equal() when passing NULL parameters.
{
GstCaps *srccaps;
GstCaps *sinkcaps;
+ GstCaps *icaps;
srccaps = gst_pad_get_caps_unlocked (src);
sinkcaps = gst_pad_get_caps_unlocked (sink);
/* if we have caps on both pads we can check the intersection. If one
* of the caps is NULL, we return TRUE. */
- if (srccaps && sinkcaps) {
- GstCaps *icaps;
+ if (srccaps == NULL || sinkcaps == NULL)
+ goto done;
- icaps = gst_caps_intersect (srccaps, sinkcaps);
- gst_caps_unref (srccaps);
- gst_caps_unref (sinkcaps);
+ icaps = gst_caps_intersect (srccaps, sinkcaps);
+ gst_caps_unref (srccaps);
+ gst_caps_unref (sinkcaps);
- if (icaps == NULL)
- goto was_null;
+ if (icaps == NULL)
+ goto was_null;
- GST_CAT_DEBUG (GST_CAT_CAPS,
- "intersection caps %p %" GST_PTR_FORMAT, icaps, icaps);
+ GST_CAT_DEBUG (GST_CAT_CAPS,
+ "intersection caps %p %" GST_PTR_FORMAT, icaps, icaps);
- if (gst_caps_is_empty (icaps))
- goto was_empty;
+ if (gst_caps_is_empty (icaps))
+ goto was_empty;
- gst_caps_unref (icaps);
- }
+ gst_caps_unref (icaps);
+
+done:
return TRUE;
/* incompatible cases */