Skip to content

Commit

Permalink
Fix deadlock in ffdec.available()
Browse files Browse the repository at this point in the history
Fixes beetbox#130 by changing `wait()` to `communicate()` to avoid deadlock

See https://docs.python.org/3/library/subprocess.html#subprocess.Popen.wait for context.
  • Loading branch information
mightbecharles authored Nov 15, 2022
1 parent b694c4f commit 79e608b
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 @@ -110,7 +110,7 @@ def available():
except OSError:
return False
else:
proc.wait()
proc.communicate()
return proc.returncode == 0


Expand Down

0 comments on commit 79e608b

Please sign in to comment.