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:
Adam Endrodi 2010-04-15 13:20:42 +03:00 committed by Stefan Kost
parent a27500b712
commit 822fd6a9ff

View file

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