mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
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:
parent
e17d99c4c4
commit
2ed3d1b309
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue