Commit 182840a5 authored by Andy Wingo Wingo's avatar Andy Wingo Wingo

gst/gstelement.override (_wrap_gst_element_link): Allow errors parsing the...

gst/gstelement.override (_wrap_gst_element_link): Allow errors parsing the optional filter caps to propagate up.

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.
parent 59667a31
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.
......
......@@ -179,8 +179,13 @@ _wrap_gst_element_link(PyGObject *self, PyObject *args, PyObject *kwargs)
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment