mv_engine_config_h working_cfg = NULL;
if (NULL == engine_cfg) {
- mv_create_engine_config(&working_cfg);
+ if (MEDIA_VISION_ERROR_NONE == mv_create_engine_config(&working_cfg)) {
+ LOGI("mv_create_engine_config is called");
+ }
} else {
working_cfg = engine_cfg;
}
modelPath = NULL;
}
+ const int err = mv_face_recognition_model_destroy(recognitionModel);
+ if (MEDIA_VISION_ERROR_NONE != err) {
+ LOGE("Error while trying to delete face recognition model."
+ " Error code: %i.", err);
+ }
+
return error;
}
Name: capi-media-vision
Summary: Media Vision library for Tizen Native API
-Version: 0.3.28
+Version: 0.3.29
Release: 1
Group: Multimedia/Framework
License: Apache-2.0 and BSD-3-Clause
free(out_file_name);
+ const int err2 = mv_destroy_source(source);
+ if (MEDIA_VISION_ERROR_NONE != err2) {
+ printf(TEXT_RED
+ "ERROR: Errors were occurred during destroying the source!!! code: %i"
+ TEXT_RESET "\n", err2);
+ }
+
return err;
}
printf(TEXT_RED "ERROR: Errors were occurred during filling the source "
"based on the video frame! Error code: %i\n" TEXT_RESET , err);
+ const int err2 = mv_destroy_source(source);
+ if (MEDIA_VISION_ERROR_NONE != err2) {
+ printf(TEXT_RED
+ "ERROR: Errors were occurred during destroying the source!!! code: %i"
+ TEXT_RESET "\n", err2);
+ }
+
return;
}
if (MEDIA_VISION_ERROR_NONE != error) {
PRINT_E("Errors were occurred during source loading, code %i", error);
+ int error2 = mv_destroy_source(source);
+ if (MEDIA_VISION_ERROR_NONE != error2) {
+ PRINT_E("Errors were occurred during source destroying, code %i", error2);
+ }
+
return;
}