diff -r 01e205c615b9 -r a289dde0a1d6 camerauis/cameraxui/cxengine/src/cxestillcapturecontrolsymbian.cpp --- a/camerauis/cameraxui/cxengine/src/cxestillcapturecontrolsymbian.cpp Thu Sep 02 20:14:28 2010 +0300 +++ b/camerauis/cameraxui/cxengine/src/cxestillcapturecontrolsymbian.cpp Fri Sep 17 08:27:13 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)));