[C-Api] fix error to run pipeline
authorJaeyun <jy1210.jung@samsung.com>
Wed, 17 Jul 2019 06:56:30 +0000 (15:56 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 17 Jul 2019 12:19:22 +0000 (21:19 +0900)
commitcdb1a552e79f60953d7a85df6c0883856c2280cd
tree91c4d50fc9dbc19c3422a50e62f54e65a17498c5
parent303181fd867f739e6f363abbf4310f9a0ceaa2f7
[C-Api] fix error to run pipeline

1. return valid error code when opening single-shot model.
2. When called destroy() in pipeline, remove all callbacks before changing pipeline state.

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