aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/argaze/utils/contexts/OpenCV.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/argaze/utils/contexts/OpenCV.py b/src/argaze/utils/contexts/OpenCV.py
index c2361a8..111ed8e 100644
--- a/src/argaze/utils/contexts/OpenCV.py
+++ b/src/argaze/utils/contexts/OpenCV.py
@@ -152,10 +152,10 @@ class Movie(ArFeatures.PostProcessingContext):
success, image = self.__movie.read()
- video_height, video_width, _ = image.shape
-
if success:
+ video_height, video_width, _ = image.shape
+
# Refresh once
self.__refresh = False