From 2d642da896911743605c8a35a138d6585ed2d28f Mon Sep 17 00:00:00 2001 From: Naoto Kondo Date: Sun, 20 Mar 2022 15:07:12 +0900 Subject: [PATCH] fix search time --- example/find.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/example/find.py b/example/find.py index 1c23352..20d506a 100644 --- a/example/find.py +++ b/example/find.py @@ -2,6 +2,7 @@ import sys import time import NDIlib as ndi + def main(): if not ndi.initialize(): @@ -13,7 +14,7 @@ def main(): return 0 t = time.time() - while time.time() - t < 1.0: + while time.time() - t < 1.0 * 60: if not ndi.find_wait_for_sources(ndi_find, 5000): print('No change to the sources found.') continue @@ -28,5 +29,6 @@ def main(): return 0 + if __name__ == "__main__": sys.exit(main())