camerauis/cameraxui/cxengine/src/cxestillcapturecontrolsymbian.cpp
changeset 55 0da2a5b56583
parent 46 c826656d6714
child 58 ddba9caa7f32
--- a/camerauis/cameraxui/cxengine/src/cxestillcapturecontrolsymbian.cpp	Mon Aug 23 13:50:05 2010 +0300
+++ b/camerauis/cameraxui/cxengine/src/cxestillcapturecontrolsymbian.cpp	Fri Sep 03 11:00:58 2010 +0300
@@ -190,9 +190,15 @@
     OstTrace0(camerax_performance, CXESTILLCAPTURECONTROLSYMBIAN_INIT_IN, "msg: e_CX_STILL_CAPCONT_INIT 1");
 
     if (state() == Uninitialized) {
+        
+        // prepare for still capture.
         prepare();
+
         // Initialize orientation sensor and other sensors
         mSensorEventHandler.init();
+        
+        // inform zoom control to prepare zoom
+        emit prepareZoomForStill(mSizeIndex);
     }
 
     OstTrace0(camerax_performance, CXESTILLCAPTURECONTROLSYMBIAN_INIT_OUT, "msg: e_CX_STILL_CAPCONT_INIT 0");
@@ -285,9 +291,6 @@
         // We can safely set state to READY.
         setState(Ready);
 
-        // inform zoom control to prepare zoom
-        emit prepareZoomForStill(mSizeIndex);
-
     } catch (const std::exception &e) {
         // Exception encountered, free resources.
         CX_DEBUG(("Image Prepare FAILED! symbian error = %d", qt_symbian_exception2Error(e)));