Skip to content

Commit

Permalink
Fixes jiaaro#822: stdin is now properly discarded
Browse files Browse the repository at this point in the history
  • Loading branch information
ggolda committed Dec 18, 2024
1 parent 996cec4 commit 965dac0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pydub/audio_segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,8 @@ def is_format(f):
read_ahead_limit = kwargs.get('read_ahead_limit', -1)
if filename:
conversion_command += ["-i", filename]
stdin_parameter = None
# stdin is not required in this mode, can discard it
stdin_parameter = subprocess.DEVNULL
stdin_data = None
else:
if cls.converter == 'ffmpeg':
Expand Down

0 comments on commit 965dac0

Please sign in to comment.