mmi-vision-provider : apply changed vision_init/shutdown return type 39/265239/1
authordyamy-lee <dyamy.lee@samsung.com>
Wed, 13 Oct 2021 02:46:49 +0000 (11:46 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Wed, 13 Oct 2021 06:39:38 +0000 (15:39 +0900)
Change-Id: I215d0357a88a2a6e34f32dbd47cc3bc06a39a2da

src/modules/modality_vision/mmi-vision-provider.c

index 46493699d3eebcd4eba488e9088216b9816dac2c..d1f584c5b5a92038c13e10a3f82a8d99425fffaf 100644 (file)
@@ -45,7 +45,12 @@ vision_modality_init(void)
        vision_data->get_mode = vision_get_mode;
        vision_data->set_mode = vision_set_mode;
 
-       vision_init();
+       int err = vision_init();
+       if(err != 0)
+       {
+               LOGE("Failed vision_init = %d", err);
+               return NULL;
+       }
        return vision_data;
 }
 
@@ -85,7 +90,12 @@ vision_modality_deinit(mmi_provider_module_data *module_data)
 
        free(module_data);
        module_data = NULL;
-       vision_shutdown();
+       int err = vision_shutdown();
+       if(err != 0)
+       {
+               LOGE("Failed vision_init = %d", err);
+               return;
+       }
 }
 
 MMI_PROVIDER_API mmi_provider_module mmi_provider_module_info = {