camerabin2: Micro optimize encodebin pads linking

Reduce one check in encodebin pads linking on camerabin2 by
using the link_pads_full version
This commit is contained in:
Thiago Santos 2011-08-31 13:29:17 -03:00
parent e17d99c4c4
commit 2ed3d1b309

View file

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