From 4a999b5e43b5cd9f6bc9b2d0615d8491cee23ec0 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Wed, 23 Jun 2010 17:24:07 +0200 Subject: [PATCH] gstghostpad: We don't need any checks when linking target pad https://bugzilla.gnome.org/show_bug.cgi?id=622504 --- gst/gstghostpad.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gst/gstghostpad.c b/gst/gstghostpad.c index b255d2a..afa4d06 100644 --- a/gst/gstghostpad.c +++ b/gst/gstghostpad.c @@ -1226,13 +1226,15 @@ gst_ghost_pad_set_target (GstGhostPad * gpad, GstPad * newtarget) G_CALLBACK (on_src_target_notify), NULL); } - /* and link to internal pad */ + /* and link to internal pad without any checks */ GST_DEBUG_OBJECT (gpad, "connecting internal pad to target"); if (GST_PAD_IS_SRC (internal)) - lret = gst_pad_link (internal, newtarget); + lret = + gst_pad_link_full (internal, newtarget, GST_PAD_LINK_CHECK_NOTHING); else - lret = gst_pad_link (newtarget, internal); + lret = + gst_pad_link_full (newtarget, internal, GST_PAD_LINK_CHECK_NOTHING); if (lret != GST_PAD_LINK_OK) goto link_failed; -- 2.7.4