Skip to content

Commit

Permalink
Avoid a crash when ffmpeg times out (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
sampsyo committed Apr 5, 2020
1 parent 177182e commit 8d02710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion audioread/ffdec.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8d02710

Please sign in to comment.