aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/toolkit/ffmpeg.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/toolkit/ffmpeg.py b/src/toolkit/ffmpeg.py
index 37c1511..256646e 100644
--- a/src/toolkit/ffmpeg.py
+++ b/src/toolkit/ffmpeg.py
@@ -128,9 +128,13 @@ class FfmpegVideo:
try:
self.currentFrame = self.pipe.stdout.read(self.chunkSize)
- except ValueError:
- FfmpegVideo.threadError = ComponentError(
- self.component, 'video')
+ except ValueError as e:
+ if str(e) == "PyMemoryView_FromBuffer(): info->buf must not be NULL":
+ log.debug("Ignored 'info->buf must not be NULL' error from FFmpeg pipe")
+ return
+ else:
+ FfmpegVideo.threadError = ComponentError(
+ self.component, 'video')
if len(self.currentFrame) != 0:
self.frameBuffer.put((self.frameNo, self.currentFrame))