From 0e14dc8d365d8ce9facbc5699636b8228eb44e09 Mon Sep 17 00:00:00 2001 From: MyungJoo Ham Date: Fri, 22 Mar 2019 14:52:17 +0900 Subject: [PATCH] [Tizen/API] Bugfix on get_state gst_state should not wait indefinitely. Let's give 100us as the "deadline". Signed-off-by: MyungJoo Ham --- tizen-api/src/tizen-api-pipeline.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tizen-api/src/tizen-api-pipeline.c b/tizen-api/src/tizen-api-pipeline.c index 25bc687..96b80db 100644 --- a/tizen-api/src/tizen-api-pipeline.c +++ b/tizen-api/src/tizen-api-pipeline.c @@ -437,9 +437,7 @@ nns_pipeline_getstate (nns_pipeline_h pipe, nns_pipeline_state * state) return NNS_ERROR_INVALID_PARAMETER; g_mutex_lock (&p->lock); - scret = - gst_element_get_state (p->element, &_state, &pending, - GST_CLOCK_TIME_NONE); + scret = gst_element_get_state (p->element, &_state, &pending, 100000UL); /* Do it within 100us! */ g_mutex_unlock (&p->lock); if (scret == GST_STATE_CHANGE_FAILURE) -- 2.7.4