[C-API] Bugfix for abnormal accessing of the callback function
authorSangjung Woo <sangjung.woo@samsung.com>
Fri, 17 Jul 2020 09:47:04 +0000 (18:47 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 21 Jul 2020 00:58:31 +0000 (09:58 +0900)
commitb22c049c41b0ec5615ba7ed983759f6b1a20ce8c
tree9970d9b9e27ccb3747bdde52c9162a3fb2bf3b44
parent20dc7d851b807368fba90f8cf74b7c8d69212bd6
[C-API] Bugfix for abnormal accessing of the callback function

If the handle of sink element is fetched by calling both
`ml_pipeline_element_get_handle()` and `ml_pipeline_sink_register()`
functions, segmantation fault occurs because of abnormal accessing for
callback function. This patch fixes that bug.

Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
api/capi/include/nnstreamer-capi-private.h
api/capi/src/nnstreamer-capi-pipeline.c