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

Skip to content

Commit e99096c

Browse files
committed
Move the fix of 39d481d in AVConvBase.
1 parent 39d481d commit e99096c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/matplotlib/animation.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,8 @@ def output_args(self):
616616
def _handle_subprocess(cls, process):
617617
_, err = process.communicate()
618618
# Ubuntu 12.04 ships a broken ffmpeg binary which we shouldn't use
619-
if 'Libav' in err.decode() and 'AVConv' not in cls.__name__:
619+
# NOTE : when removed, remove the same method in AVConvBase.
620+
if 'Libav' in err.decode():
620621
return False
621622
return True
622623

@@ -674,6 +675,11 @@ class AVConvBase(FFMpegBase):
674675
exec_key = 'animation.avconv_path'
675676
args_key = 'animation.avconv_args'
676677

678+
# NOTE : should be removed when the same method is removed in FFMpegBase.
679+
@classmethod
680+
def _handle_subprocess(cls, process):
681+
return MovieWriter._handle_subprocess(process)
682+
677683

678684
# Combine AVConv options with pipe-based writing
679685
@writers.register('avconv')

0 commit comments

Comments
 (0)