Linux - prevent crash when loading incompatible FFmpeg lib.
@@ -111,6 +111,7 @@ def add_default_media_codecs():
except ImportError:
pass
+
def have_ffmpeg():
"""Check if FFmpeg library is available.
@@ -125,7 +126,7 @@ def have_ffmpeg():
print('FFmpeg available, using to load media files.')
return True
- except (ImportError, FileNotFoundError):
+ except (ImportError, FileNotFoundError, AttributeError):
if _debug:
print('FFmpeg not available.')
return False
