Fix FFmpegAudio._process not existing if _spawn_process raises

This commit is contained in:
Imayhaveborkedit 2019-08-27 19:53:44 -04:00 committed by GitHub
parent ea3d119ca6
commit bc147ea37b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)