Fix bug not to call mv_util_visualizer_2d() if url is empty 49/290249/1
authorTae-Young Chung <ty83.chung@samsung.com>
Wed, 22 Mar 2023 03:32:46 +0000 (12:32 +0900)
committerTae-Young Chung <ty83.chung@samsung.com>
Wed, 22 Mar 2023 03:34:46 +0000 (12:34 +0900)
[Version] 0.23.46
[Issue type] bug fix

Change-Id: Ie5a3f10163d6c22acbddf08dbb0251189fcedf3c
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
packaging/capi-media-vision.spec
test/testsuites/machine_learning/inference/odstream_test_suite.cpp

index b3daa64..cd80172 100644 (file)
@@ -1,6 +1,6 @@
 Name:        capi-media-vision
 Summary:     Media Vision library for Tizen Native API
-Version:     0.23.45
+Version:     0.23.46
 Release:     0
 Group:       Multimedia/Framework
 License:     Apache-2.0 and BSD-3-Clause
index 8c33db9..b22ec85 100644 (file)
@@ -126,8 +126,10 @@ static void _object_detected_cb(mv_source_h source, const int number_of_objects,
 
 #ifdef BUILD_VISUALIZER
        auto odapp = static_cast<appdata *>(user_data);
-       mv_util_visualizer_2d(source, odapp->remoteData.url.c_str());
-       mv_source_clear(odapp->remoteData.source);
+       if (!odapp->remoteData.url.empty()) {
+               mv_util_visualizer_2d(source, odapp->remoteData.url.c_str());
+               mv_source_clear(odapp->remoteData.source);
+       }
 #endif
 
 }