summaryrefslogtreecommitdiff
path: root/mpv.py
diff options
context:
space:
mode:
authorcosven <yinshaowen241@gmail.com>2019-02-07 23:35:14 +0800
committercosven <yinshaowen241@gmail.com>2019-02-07 23:35:14 +0800
commit7905ebacdd0b8994e815246c95efc4add363dfae (patch)
tree806627bfe7ee882c40866d7176126af5cbecac45 /mpv.py
parent9b4faea03050b161328c4c83f67b407ad0b10c80 (diff)
downloadpython-mpv-7905ebacdd0b8994e815246c95efc4add363dfae.tar.gz
python-mpv-7905ebacdd0b8994e815246c95efc4add363dfae.tar.bz2
python-mpv-7905ebacdd0b8994e815246c95efc4add363dfae.zip
fix: getProcAddr function should return a function or 0
Diffstat (limited to 'mpv.py')
-rw-r--r--mpv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpv.py b/mpv.py
index 831a813..c64f735 100644
--- a/mpv.py
+++ b/mpv.py
@@ -308,7 +308,7 @@ class MpvEventClientMessage(Structure):
WakeupCallback = 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):
func = getattr(backend, name)