This commit is contained in:
Glenn Jocher
2019-09-19 19:09:59 +02:00
parent fdfc4a5e63
commit 0e52b8f361
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -193,6 +193,8 @@ class LoadStreams: # multiple IP or RTSP cameras
if os.path.isfile(sources):
with open(sources, 'r') as f:
sources = [x.strip() for x in f.read().splitlines() if len(x.strip())]
else:
sources = [sources]
n = len(sources)
self.imgs = [None] * n