[Api/Single] change return value
authorJaeyun Jung <jy1210.jung@samsung.com>
Sat, 22 Feb 2020 07:57:12 +0000 (16:57 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 24 Feb 2020 07:04:18 +0000 (23:04 -0800)
Return not-supported if the property is not available.

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

index 01da250..4af8089 100644 (file)
@@ -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);