Fix FFmpegAudio._process not existing if _spawn_process raises
This commit is contained in:
parent
ea3d119ca6
commit
bc147ea37b
@ -122,6 +122,8 @@ class FFmpegAudio(AudioSource):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, source, *, executable='ffmpeg', args, **subprocess_kwargs):
|
def __init__(self, source, *, executable='ffmpeg', args, **subprocess_kwargs):
|
||||||
|
self._process = self._stdout = None
|
||||||
|
|
||||||
args = [executable, *args]
|
args = [executable, *args]
|
||||||
kwargs = {'stdout': subprocess.PIPE}
|
kwargs = {'stdout': subprocess.PIPE}
|
||||||
kwargs.update(subprocess_kwargs)
|
kwargs.update(subprocess_kwargs)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user