From a5ed7afb4cea42bd001e388f7fe9fe15ef9b6c59 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Tue, 13 Jan 2015 19:25:52 -0300 Subject: [PATCH] decodebin: disable pad link checks as it has already been done Decodebin has already added the element to the bin and should only select caps compatible pads. It should disable the pad link checks to avoid doing those again. https://bugzilla.gnome.org/show_bug.cgi?id=742885 --- gst/playback/gstdecodebin2.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gst/playback/gstdecodebin2.c b/gst/playback/gstdecodebin2.c index 08a0ddb5ad..813fcc7196 100644 --- a/gst/playback/gstdecodebin2.c +++ b/gst/playback/gstdecodebin2.c @@ -2229,7 +2229,8 @@ connect_pad (GstDecodeBin * dbin, GstElement * src, GstDecodePad * dpad, } /* ... and try to link */ - if ((gst_pad_link (pad, sinkpad)) != GST_PAD_LINK_OK) { + if ((gst_pad_link_full (pad, sinkpad, + GST_PAD_LINK_CHECK_NOTHING)) != GST_PAD_LINK_OK) { GST_WARNING_OBJECT (dbin, "Link failed on pad %s:%s", GST_DEBUG_PAD_NAME (sinkpad)); remove_error_filter (dbin, element, NULL); @@ -3554,7 +3555,8 @@ gst_decode_group_control_demuxer_pad (GstDecodeGroup * group, GstPad * pad) return NULL; } - if ((gst_pad_link (pad, sinkpad) != GST_PAD_LINK_OK)) { + if ((gst_pad_link_full (pad, sinkpad, + GST_PAD_LINK_CHECK_NOTHING) != GST_PAD_LINK_OK)) { GST_ERROR_OBJECT (dbin, "Couldn't link demuxer and multiqueue"); goto error; }