From 82ef329603723218ef557f6e1e3d11767a0c3a80 Mon Sep 17 00:00:00 2001 From: MyungJoo Ham Date: Fri, 2 Aug 2019 15:39:54 +0900 Subject: [PATCH] [Tizen/C-API] Increate single-invoke timeout Timeout of 1 sec is too short even for unit-test cases in QEMU-ARM. Increase it to 3 sec. Signed-off-by: MyungJoo Ham --- api/capi/include/nnstreamer-single.h | 1 + api/capi/src/nnstreamer-capi-single.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/api/capi/include/nnstreamer-single.h b/api/capi/include/nnstreamer-single.h index f8c31fe..468850f 100644 --- a/api/capi/include/nnstreamer-single.h +++ b/api/capi/include/nnstreamer-single.h @@ -92,6 +92,7 @@ int ml_single_close (ml_single_h single); * @brief Invokes the model with the given input data. * @details Even if the model has flexible input data dimensions, * input data frames of an instance of a model should share the same dimension. + * Note that this has a timeout of 3 seconds. * @since_tizen 5.5 * @param[in] single The model handle to be inferred. * @param[in] input The input data to be inferred. diff --git a/api/capi/src/nnstreamer-capi-single.c b/api/capi/src/nnstreamer-capi-single.c index 4f230a8..9a22af3 100644 --- a/api/capi/src/nnstreamer-capi-single.c +++ b/api/capi/src/nnstreamer-capi-single.c @@ -432,7 +432,7 @@ ml_single_invoke (ml_single_h single, #if (GST_VERSION_MAJOR > 1 || (GST_VERSION_MAJOR == 1 && GST_VERSION_MINOR >= 10)) /* gst_app_sink_try_pull_sample() is available at gstreamer-1.10 */ sample = - gst_app_sink_try_pull_sample (GST_APP_SINK (single_h->sink), GST_SECOND); + gst_app_sink_try_pull_sample (GST_APP_SINK (single_h->sink), GST_SECOND * 3); #else sample = gst_app_sink_pull_sample (GST_APP_SINK (single_h->sink)); #endif -- 2.7.4