fix: use proper not check against MatLike type

Fixes video thumbnails not rendering.
This commit is contained in:
Travis Abendshien
2025-03-31 02:13:06 -07:00
parent 7dd1905b6e
commit 3b5a9605d1

View File

@@ -1094,7 +1094,7 @@ class ThumbRenderer(QObject):
video.set(cv2.CAP_PROP_POS_FRAMES, i)
else:
break
if frame:
if frame is not None:
frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
im = Image.fromarray(frame)
except (