From 2ed3d1b3092c12af2b176d7d267e923805d0c8c8 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Wed, 31 Aug 2011 13:29:17 -0300 Subject: [PATCH] camerabin2: Micro optimize encodebin pads linking Reduce one check in encodebin pads linking on camerabin2 by using the link_pads_full version --- gst/camerabin2/gstcamerabin2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/camerabin2/gstcamerabin2.c b/gst/camerabin2/gstcamerabin2.c index e7bc09c851..3b08927836 100644 --- a/gst/camerabin2/gstcamerabin2.c +++ b/gst/camerabin2/gstcamerabin2.c @@ -1132,7 +1132,7 @@ gst_camera_bin_link_encodebin (GstCameraBin2 * camera, GstElement * encodebin, return GST_PAD_LINK_REFUSED; } - ret = gst_pad_link (srcpad, sinkpad); + ret = gst_pad_link_full (srcpad, sinkpad, GST_PAD_LINK_CHECK_CAPS); gst_object_unref (sinkpad); gst_object_unref (srcpad);