summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTommi Myöhänen <ext-tommi.1.myohanen@nokia.com>2009-08-22 17:09:39 +0300
committerRené Stadler <rene.stadler@nokia.com>2009-10-01 18:06:54 +0300
commiteb648817a445d2c194e2d409cc3db1d0e19f7df0 (patch)
treefe968c2d3973f4e95102f4748afa11428b77fb4e
parentdc267be4f78154c28dedc1c1a5c3921ee1490893 (diff)
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.
-rw-r--r--gst/camerabin/gstcamerabinphotography.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/camerabin/gstcamerabinphotography.c b/gst/camerabin/gstcamerabinphotography.c
index c56891491..31dcb0e2d 100644
--- a/gst/camerabin/gstcamerabinphotography.c
+++ b/gst/camerabin/gstcamerabinphotography.c
@@ -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;
}