Log warning, if frame could not be loaded by video source.

This commit is contained in:
Markus Roth
2013-11-08 23:05:38 +01:00
parent f52d63cc6e
commit 6e58439746
+4 -1
View File
@@ -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()