[Api/Single] clear old buffer
authorJaeyun <jy1210.jung@samsung.com>
Wed, 4 Sep 2019 04:36:11 +0000 (13:36 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 11 Sep 2019 11:51:43 +0000 (20:51 +0900)
commitc826aacb5f4d8dc1b25bf8da50d705d3822d9f53
tree52b2662028d6a3540913f32f109993d350965e40
parentf096b2029cfec8c03207d925a13670d768eea0eb
[Api/Single] clear old buffer

1. Add mutex-lock for internal process.
2. Clear old buffer of appsink before pushing new buffer to appsrc.

When old buffer received in appsink after timeout, next output of invoke() may be the previous result.
To prevent this, clear old sample of appsink before pushing new buffer.

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