Skip to content

Commit 71fb52f

Browse files
Update grid.py
Signed-off-by: Muhammad Rizwan Munawar <muhammadrizwanmunawar123@gmail.com>
1 parent acfbb54 commit 71fb52f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

streamgrid/grid.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,10 @@ def run(self):
180180

181181
try:
182182
while self.running:
183-
self.update_display()
183+
has_frame = self.update_display()
184+
if not has_frame:
185+
LOGGER.info("ℹ️ All videos ended. Exiting.")
186+
break
184187
key = cv2.waitKey(1) & 0xFF
185188
if key == 27: # ESC
186189
break

0 commit comments

Comments
 (0)