camerabin: fix scene mode setting
authorTommi Myöhänen <ext-tommi.1.myohanen@nokia.com>
Sat, 22 Aug 2009 14:09:39 +0000 (17:09 +0300)
committerRené Stadler <rene.stadler@nokia.com>
Thu, 1 Oct 2009 15:06:54 +0000 (18:06 +0300)
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.

gst/camerabin/gstcamerabinphotography.c

index c568914..31dcb0e 100644 (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;
 }