Skip to content

Commit 156dfa4

Browse files
authored
Merge pull request #17882 from QuLogic/fix-animation-init
Fix FFMpegBase.isAvailable with detached terminals.
2 parents c12dafd + b445b97 commit 156dfa4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)