mirror of
https://github.com/wassname/sloth.git
synced 2026-08-04 13:13:47 +08:00
Log warning, if frame could not be loaded by video source.
This commit is contained in:
@@ -181,7 +181,10 @@ class AnnotationContainer:
|
||||
self._video_cache[fullpath] = vidsrc
|
||||
|
||||
# get requested frame
|
||||
vidsrc.getFrame(frame_number)
|
||||
if not vidsrc.getFrame(frame_number):
|
||||
LOG.warn("Frame %d could not be loaded from video source %s" % (frame_number, fullpath))
|
||||
return None
|
||||
|
||||
return vidsrc.getImage()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user