Error for known-incompatible libmpv (closes #223)
This commit is contained in:
parent
1d2a0bef46
commit
4a8554319f
1 changed files with 5 additions and 0 deletions
5
mpv.py
5
mpv.py
|
|
@ -537,6 +537,11 @@ def _mpv_client_api_version():
|
|||
ver = backend.mpv_client_api_version()
|
||||
return ver>>16, ver&0xFFFF
|
||||
|
||||
MPV_VERSION = _mpv_client_api_version()
|
||||
if MPV_VERSION < (1, 108):
|
||||
ver = '.'.join(str(num) for num in MPV_VERSION)
|
||||
raise RuntimeError(f"python-mpv requires libmpv with an API version of 1.108 or higher (libmpv >= 0.33), but you have an older version ({ver}).")
|
||||
|
||||
backend.mpv_free.argtypes = [c_void_p]
|
||||
_mpv_free = backend.mpv_free
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue