diff options
| author | tassaron | 2022-04-29 21:17:02 -0400 |
|---|---|---|
| committer | tassaron | 2022-04-29 21:17:02 -0400 |
| commit | d51d49701e5880e35bbbade72c52bbec18f6e398 (patch) | |
| tree | 9a3fcf968170cce3a45a26bde13b4f1a3404e072 | |
| parent | c2c3f0aa5adf3127b84b3d50da9e1aa655c8a824 (diff) | |
ignore benign error from reading a closed pipe
happens when the video is done exporting sometimes. Not worth fixing
| -rw-r--r-- | src/toolkit/ffmpeg.py | 10 |
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)) |
