[Tizen/C-API] Increate single-invoke timeout
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 2 Aug 2019 06:39:54 +0000 (15:39 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Fri, 2 Aug 2019 08:06:13 +0000 (17:06 +0900)
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 <myungjoo.ham@samsung.com>
api/capi/include/nnstreamer-single.h
api/capi/src/nnstreamer-capi-single.c

index f8c31fe..468850f 100644 (file)
@@ -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.
index 4f230a8..9a22af3 100644 (file)
@@ -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