diff options
| author | tassaron | 2022-05-03 07:39:54 -0400 |
|---|---|---|
| committer | tassaron | 2022-05-03 07:39:54 -0400 |
| commit | 62ca90f0c9a47d4969feadfb22005d86783bd235 (patch) | |
| tree | 47226e894aac5dc9cf2bd4d6222554764978590d /src/video_thread.py | |
| parent | 39e4e86054d0a89b24b69802ec1984fd19342672 (diff) | |
Broken pipe raises OSError on some platforms.
Catching this exception prevents the app from crashing on Windows when cancelling an export in progress, or when finishing the export if components use FFmpeg pipes themselves.
Diffstat (limited to 'src/video_thread.py')
| -rw-r--r-- | src/video_thread.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_thread.py b/src/video_thread.py index dc6db89..894a870 100644 --- a/src/video_thread.py +++ b/src/video_thread.py @@ -378,8 +378,8 @@ class Worker(QtCore.QObject): def closePipe(self): try: self.out_pipe.stdin.close() - except BrokenPipeError: - log.error('Broken pipe to ffmpeg!') + except (BrokenPipeError, OSError): + log.error('Broken pipe to FFmpeg!') if self.out_pipe.stderr is not None: log.error(self.out_pipe.stderr.read()) self.out_pipe.stderr.close() |
