projects
/
platform
/
upstream
/
nnstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83bdf3f
)
[Api/Single] change return value
author
Jaeyun Jung
<jy1210.jung@samsung.com>
Sat, 22 Feb 2020 07:57:12 +0000
(16:57 +0900)
committer
MyungJoo 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
patch
|
blob
|
history
diff --git
a/api/capi/src/nnstreamer-capi-single.c
b/api/capi/src/nnstreamer-capi-single.c
index
01da250
..
4af8089
100644
(file)
--- 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);