[Tizen/Restriction] add sensor-src in restriction
authorJaeyun <jy1210.jung@samsung.com>
Wed, 8 Jul 2020 03:53:42 +0000 (12:53 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 10 Jul 2020 05:30:54 +0000 (14:30 +0900)
change condition to check restricted element.
tizen sensor-src will be included in restrict list.

Signed-off-by: Jaeyun <jy1210.jung@samsung.com>
api/capi/src/nnstreamer-capi-util.c

index 31b9fd2..a7f5060 100644 (file)
@@ -1271,7 +1271,7 @@ ml_check_plugin_availability (const char *plugin_name, const char *element_name)
   }
 
   /* nnstreamer elements */
-  if (g_str_equal (plugin_name, "nnstreamer") &&
+  if (g_str_has_prefix (plugin_name, "nnstreamer") &&
       g_str_has_prefix (element_name, "tensor_")) {
     return ML_ERROR_NONE;
   }