Commit b4b386a1 authored by Wim Taymans's avatar Wim Taymans
Browse files

gstpad: fix gst_pad_can_link

We were converting the GstPadLinkReturn to a gboolean, which is not what we want
to do.
parent a1549d67
......@@ -1949,7 +1949,7 @@ gst_pad_can_link (GstPad * srcpad, GstPad * sinkpad)
/* gst_pad_link_prepare does everything for us, we only release the locks
* on the pads that it gets us. If this function returns !OK the locks are not
* taken anymore. */
result = gst_pad_link_prepare (srcpad, sinkpad) == GST_PAD_LINK_OK;
result = gst_pad_link_prepare (srcpad, sinkpad);
if (result != GST_PAD_LINK_OK)
goto done;
......
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