From: Jaeyun Date: Wed, 8 Jul 2020 03:53:42 +0000 (+0900) Subject: [Tizen/Restriction] add sensor-src in restriction X-Git-Tag: accepted/tizen/unified/20200715.115543~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6223a7c69d8c734d791600dbae43d1422cc47ca0;p=platform%2Fupstream%2Fnnstreamer.git [Tizen/Restriction] add sensor-src in restriction change condition to check restricted element. tizen sensor-src will be included in restrict list. Signed-off-by: Jaeyun --- diff --git a/api/capi/src/nnstreamer-capi-util.c b/api/capi/src/nnstreamer-capi-util.c index 31b9fd2..a7f5060 100644 --- a/api/capi/src/nnstreamer-capi-util.c +++ b/api/capi/src/nnstreamer-capi-util.c @@ -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; }