Original commit message from CVS:
2006-04-07 Andy Wingo <wingo@pobox.com>
* gst/gstelement.override (_wrap_gst_element_link): Allow errors
parsing the optional filter caps to propagate up.
2006-04-07 Andy Wingo <wingo@pobox.com>
+ * gst/gstelement.override (_wrap_gst_element_link): Allow errors
+ parsing the optional filter caps to propagate up.
+
* gst/gst.defs (element_make_from_uri): Element name is optional
and can be None. It defaults to None.
return NULL;
if (py_caps == NULL)
caps = NULL;
- else
+ else {
caps = pygst_caps_from_pyobject (py_caps, &caps_is_copy);
+ if (caps == NULL)
+ /* an error happened, propagate up */
+ return NULL;
+ }
+
ret = gst_element_link_filtered(GST_ELEMENT(self->obj), GST_ELEMENT(dest->obj), caps);
if (caps && caps_is_copy)
gst_caps_unref (caps);