Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9cac554

Browse files
dstansbymeeseeksmachine
authored andcommitted
Backport PR #17882: Fix FFMpegBase.isAvailable with detached terminals.
1 parent 834ae93 commit 9cac554

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/matplotlib/animation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,8 @@ def isAvailable(cls):
597597
# NOTE: when removed, remove the same method in AVConvBase.
598598
and b'LibAv' not in subprocess.run(
599599
[cls.bin_path()], creationflags=subprocess_creation_flags,
600-
stdout=subprocess.DEVNULL, stderr=subprocess.PIPE).stderr)
600+
stdin=subprocess.DEVNULL, stdout=subprocess.DEVNULL,
601+
stderr=subprocess.PIPE).stderr)
601602

602603

603604
# Combine FFMpeg options with pipe-based writing

0 commit comments

Comments
 (0)