mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
camerabin: fix scene mode setting
Camerabin caches photography settings, but it didn't take into account that scene mode setting may change other settings as well. So, config needs to be read back from device after scene mode is set.
This commit is contained in:
parent
dc267be4f7
commit
eb648817a4
1 changed files with 4 additions and 0 deletions
|
@ -283,6 +283,10 @@ gst_camerabin_set_scene_mode (GstPhotography * photo, GstSceneMode scene_mode)
|
|||
if (PHOTOGRAPHY_IS_OK (camera->src_vid_src)) {
|
||||
ret = gst_photography_set_scene_mode (GST_PHOTOGRAPHY (camera->src_vid_src),
|
||||
scene_mode);
|
||||
if (ret) {
|
||||
gst_photography_get_config (GST_PHOTOGRAPHY (camera->src_vid_src),
|
||||
&camera->photo_settings);
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue