From a50c92132511367be861e8c9c879b7d4ffa935a4 Mon Sep 17 00:00:00 2001 From: Jaeyun Jung Date: Sat, 22 Feb 2020 16:57:12 +0900 Subject: [PATCH] [Api/Single] change return value Return not-supported if the property is not available. Signed-off-by: Jaeyun Jung --- api/capi/src/nnstreamer-capi-single.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/capi/src/nnstreamer-capi-single.c b/api/capi/src/nnstreamer-capi-single.c index 01da250..4af8089 100644 --- a/api/capi/src/nnstreamer-capi-single.c +++ b/api/capi/src/nnstreamer-capi-single.c @@ -1070,7 +1070,7 @@ ml_single_get_property (ml_single_h single, const char *name, char **value) *value = (bool_value) ? g_strdup ("true") : g_strdup ("false"); } else { ml_loge ("The property %s is not available.", name); - status = ML_ERROR_INVALID_PARAMETER; + status = ML_ERROR_NOT_SUPPORTED; } ML_SINGLE_HANDLE_UNLOCK (single_h); -- 2.7.4