and add error return when the mode is MV_3D_DEPTH_MODE_NONE
[Issue type] update and bug fix
Change-Id: I23d73be70123c07ae7d2bd931207e9f4e90ff5b3
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
{
"name" : "MV_3D_DEPTH_MODE",
"type" : "integer",
- "value" : 0
+ "value" : 1
},
{
"name" : "MV_3D_DEPTH_WIDTH",
int Mv3d::Prepare()
{
+ if (mMode == MV_3D_DEPTH_MODE_NONE) {
+ LOGE("Invalid Operation. Set proper MV_3D_DEPTH_MODE");
+ return MEDIA_VISION_ERROR_INVALID_OPERATION;
+ }
+
if (!mDfsAdaptor) {
LOGE("Invalid Opertation. Do Configure first.");
return MEDIA_VISION_ERROR_INVALID_OPERATION;