Skip to content

Commit 87622b9

Browse files
authored
[Fix] fix gui VideoSlider bug (#1885)
1 parent 3c5bd83 commit 87622b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/gui/component.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -439,8 +439,8 @@ def run(self):
439439
num = self.num if self.num < self.total_frames2 \
440440
else self.total_frames2 - 1
441441
img2 = cv2.imread(self.v2[num])
442-
elif isinstance(self.v1, cv2.VideoCapture):
443-
r, img2 = self.v1.read()
442+
elif isinstance(self.v2, cv2.VideoCapture):
443+
r, img2 = self.v2.read()
444444
if not r:
445445
self.v2, self.fps2, self.total_frames2 = self.setVideo(
446446
self.path2, self.fps2)

0 commit comments

Comments
 (0)