when called construct(), set the pipeline state paused.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
g_mutex_unlock (&pipe_h->lock);
+ /* set pipeline state to PAUSED */
+ if (status == ML_ERROR_NONE) {
+ status = ml_pipeline_stop (*pipe);
+ }
+
if (status != ML_ERROR_NONE) {
/* failed to construct the pipeline */
ml_pipeline_destroy (*pipe);
*/
TEST (nnstreamer_capi_src, failure_02_n)
{
- const char *pipeline = "appsrc is-live=true name=mysource ! valve name=valvex ! filesink";
+ const char *pipeline = "appsrc name=mysource ! other/tensor,dimension=(string)4:1:1:1,type=(string)uint8,framerate=(fraction)0/1 ! valve name=valvex ! tensor_sink";
ml_pipeline_h handle;
ml_pipeline_src_h srchandle;