Skip to content

Commit 8d02710

Browse files
committed
Avoid a crash when ffmpeg times out (#106)
1 parent 177182e commit 8d02710

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

audioread/ffdec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def read_data(self, timeout=10.0):
202202
# Nothing interesting has happened for a while --
203203
# FFmpeg is probably hanging.
204204
raise ReadTimeoutError('ffmpeg output: {}'.format(
205-
''.join(self.stderr_reader.queue.queue)
205+
b''.join(self.stderr_reader.queue.queue)
206206
))
207207
else:
208208
start_time = end_time

0 commit comments

Comments
 (0)