From 8d02710f5cd9f8db1290e4a3a08115e222b0790a Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Sun, 5 Apr 2020 10:52:36 -0400 Subject: [PATCH] Avoid a crash when ffmpeg times out (#106) --- audioread/ffdec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audioread/ffdec.py b/audioread/ffdec.py index d957034..ad4f448 100644 --- a/audioread/ffdec.py +++ b/audioread/ffdec.py @@ -202,7 +202,7 @@ def read_data(self, timeout=10.0): # Nothing interesting has happened for a while -- # FFmpeg is probably hanging. raise ReadTimeoutError('ffmpeg output: {}'.format( - ''.join(self.stderr_reader.queue.queue) + b''.join(self.stderr_reader.queue.queue) )) else: start_time = end_time