[single] Enable setting timeout to 0
authorParichay Kapoor <pk.kapoor@samsung.com>
Fri, 24 Jul 2020 01:45:45 +0000 (10:45 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 24 Jul 2020 06:55:34 +0000 (15:55 +0900)
Enable setting timeout to 0
timeout 0 now has significance and re-setting timeout to 0 should be allowed

Related issue: #2568

Signed-off-by: Parichay Kapoor <pk.kapoor@samsung.com>
api/capi/src/nnstreamer-capi-single.c

index 84644d7..0c06121 100644 (file)
@@ -943,7 +943,7 @@ ml_single_set_timeout (ml_single_h single, unsigned int timeout)
 
   check_feature_state ();
 
-  if (!single || timeout == 0)
+  if (!single)
     return ML_ERROR_INVALID_PARAMETER;
 
   ML_SINGLE_GET_VALID_HANDLE_LOCKED (single_h, single, 0);