From: Jaeyun Jung Date: Sat, 22 Feb 2020 07:57:12 +0000 (+0900) Subject: [Api/Single] change return value X-Git-Tag: accepted/tizen/unified/20200228.123757~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a50c92132511367be861e8c9c879b7d4ffa935a4;p=platform%2Fupstream%2Fnnstreamer.git [Api/Single] change return value Return not-supported if the property is not available. Signed-off-by: Jaeyun Jung --- 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);