Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37535652
en ru br
Репозитории ALT
S:3.0.0-alt7.beta1.gitc5b1766
www.altlinux.org/Changes

Группа :: Система/Ядро и оборудование
Пакет: howdy

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: howdy-pull-692-3.patch
Скачать


From 9e9cc01db46fe255cbf18164b5492c2ce44a3193 Mon Sep 17 00:00:00 2001
From: FeliciaWen <wmyfelix@gmail.com>
Date: Tue, 26 Jul 2022 12:53:00 +0800
Subject: [PATCH] Fix sleep delay before quit
---
 howdy/src/recorders/video_capture.py | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/howdy/src/recorders/video_capture.py b/howdy/src/recorders/video_capture.py
index 6e0d1a2..a6bae2e 100755
--- a/howdy/src/recorders/video_capture.py
+++ b/howdy/src/recorders/video_capture.py
@@ -83,12 +83,13 @@ def read_frame(self):
 		# Don't remove ret, it doesn't work without it
 		ret, frame = self.internal.read()
 		i = 0
-		while not ret and i<=4:
-			sleep(i*.5)
-			ret, frame = self.internal.read()
-			if i == 4:
+		while not ret and i<=5:
+			if i == 5:
 				print(_("Failed to read camera specified in the 'device_path' config option, aborting"))
 				sys.exit(1)
+			sleep(i*.5)
+			ret, frame = self.internal.read()
+			
 			i+=1
 		try:
 			# Convert from color to grayscale
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin