diff options
author | Dimitar Borisov <x0152684@ti.com> | 2012-10-12 16:48:50 +0300 |
---|---|---|
committer | Daniel Levin <dendy@ti.com> | 2012-12-05 15:44:54 +0200 |
commit | 6512141186a7ec37f93b1a52449fc3a47011dfee (patch) | |
tree | 15f0939dd0d648a6c976a0dd87ffd706986ab450 /test | |
parent | d1e01a97370fadea6cacc300f0fd0c6e5e89fae2 (diff) | |
download | android_hardware_ti_omap4-6512141186a7ec37f93b1a52449fc3a47011dfee.tar.gz android_hardware_ti_omap4-6512141186a7ec37f93b1a52449fc3a47011dfee.tar.bz2 android_hardware_ti_omap4-6512141186a7ec37f93b1a52449fc3a47011dfee.zip |
camera_test: Fix for disconnect and reconnect to camera
[Problem]
Currently when try to disconnect and reconnect to
camera using "@" command, segmentation fault is seen.
This is happening because when open camera, some of the parameters
are not set to valid valiues when setParameters function is called.
[Solution]
When get parameters form capabilities, initDefaults() function is called
to set all the parameters to the default values and then setParameters is called.
Change-Id: Icd49ca6286b92badec9c302c966263139aa204f3
Signed-off-by: Dimitar Borisov <x0152684@ti.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/CameraHal/camera_test_menu.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/CameraHal/camera_test_menu.cpp b/test/CameraHal/camera_test_menu.cpp index e72bcd7..7ff0155 100644 --- a/test/CameraHal/camera_test_menu.cpp +++ b/test/CameraHal/camera_test_menu.cpp @@ -1293,6 +1293,7 @@ int openCamera() { } getParametersFromCapabilities(); getSizeParametersFromCapabilities(); + initDefaults(); camera->setParameters(params.flatten()); camera->setListener(new CameraHandler()); |