[CAPI] Wait until the pipeline state is changed accepted/tizen/unified/20201222.122524 submit/tizen/20201222.073053
authorDongju Chae <dongju.chae@samsung.com>
Wed, 16 Dec 2020 10:05:11 +0000 (19:05 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 22 Dec 2020 00:50:55 +0000 (09:50 +0900)
commitb31c150213daf194522b6cf59e9e0e182737d495
treebad5009ffea6ec72f77dda57ae3bd0cea7cce287
parent5818465287132025271e953d6c2b82a57f4b567d
[CAPI] Wait until the pipeline state is changed

This patch fixes a potential danger after ml_pipeline_construct()
is called. As ml_pipeline_construct() does not wait the pipeline
state change, the following APIs such as set_property may affect
the initial pipeline processing with dummy data (even if the pipe
line is not started).

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
api/capi/src/nnstreamer-capi-pipeline.c
gst/nnstreamer/tensor_demux/gsttensordemux.c