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:
Tommi Myöhänen 2009-08-22 17:09:39 +03:00 committed by René Stadler
parent dc267be4f7
commit eb648817a4

View file

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