mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
camerabin: reset software zooming if not set by the photo interface
Otherwise both software (videoscal+videocrop) and hardware zooming would be used.
This commit is contained in:
parent
a27500b712
commit
822fd6a9ff
1 changed files with 1 additions and 0 deletions
|
@ -1128,6 +1128,7 @@ gst_camerabin_setup_zoom (GstCameraBin * camera)
|
|||
GST_INFO_OBJECT (camera, "setting zoom %d", zoom);
|
||||
|
||||
if (gst_camerabin_set_videosrc_zoom (camera, zoom)) {
|
||||
gst_camerabin_set_element_zoom (camera, ZOOM_1X);
|
||||
GST_INFO_OBJECT (camera, "zoom set using videosrc");
|
||||
} else if (gst_camerabin_set_element_zoom (camera, zoom)) {
|
||||
GST_INFO_OBJECT (camera, "zoom set using gst elements");
|
||||
|
|
Loading…
Reference in a new issue