Browse Source
Fix FFmpegAudio._process not existing if _spawn_process raises
pull/2327/head
Imayhaveborkedit
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
discord/player.py
|
|
@ -122,6 +122,8 @@ class FFmpegAudio(AudioSource): |
|
|
|
""" |
|
|
|
|
|
|
|
def __init__(self, source, *, executable='ffmpeg', args, **subprocess_kwargs): |
|
|
|
self._process = self._stdout = None |
|
|
|
|
|
|
|
args = [executable, *args] |
|
|
|
kwargs = {'stdout': subprocess.PIPE} |
|
|
|
kwargs.update(subprocess_kwargs) |
|
|
|