gstpad: fix gst_pad_can_link

We were converting the GstPadLinkReturn to a gboolean, which is not what we want
to do.
This commit is contained in:
Wim Taymans 2009-03-19 17:19:49 +01:00
parent a1549d67de
commit b4b386a1fd

View file

@ -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;