fix: getProcAddr function should return a function or 0
This commit is contained in:
parent
9b4faea030
commit
7905ebacdd
1 changed files with 1 additions and 1 deletions
2
mpv.py
2
mpv.py
|
|
@ -308,7 +308,7 @@ class MpvEventClientMessage(Structure):
|
||||||
WakeupCallback = CFUNCTYPE(None, c_void_p)
|
WakeupCallback = CFUNCTYPE(None, c_void_p)
|
||||||
|
|
||||||
OpenGlCbUpdateFn = CFUNCTYPE(None, c_void_p)
|
OpenGlCbUpdateFn = CFUNCTYPE(None, c_void_p)
|
||||||
OpenGlCbGetProcAddrFn = CFUNCTYPE(None, c_void_p, c_char_p)
|
OpenGlCbGetProcAddrFn = CFUNCTYPE(c_void_p, c_void_p, c_char_p)
|
||||||
|
|
||||||
def _handle_func(name, args, restype, errcheck, ctx=MpvHandle):
|
def _handle_func(name, args, restype, errcheck, ctx=MpvHandle):
|
||||||
func = getattr(backend, name)
|
func = getattr(backend, name)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue