mirror of
https://github.com/TagStudioDev/TagStudio.git
synced 2026-01-29 06:10:51 +00:00
fix: use proper not check against MatLike type
Fixes video thumbnails not rendering.
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user