diff options
author | cosven <yinshaowen241@gmail.com> | 2019-02-07 23:35:14 +0800 |
---|---|---|
committer | cosven <yinshaowen241@gmail.com> | 2019-02-07 23:35:14 +0800 |
commit | 7905ebacdd0b8994e815246c95efc4add363dfae (patch) | |
tree | 806627bfe7ee882c40866d7176126af5cbecac45 | |
parent | 9b4faea03050b161328c4c83f67b407ad0b10c80 (diff) | |
download | python-mpv-7905ebacdd0b8994e815246c95efc4add363dfae.tar.gz python-mpv-7905ebacdd0b8994e815246c95efc4add363dfae.tar.bz2 python-mpv-7905ebacdd0b8994e815246c95efc4add363dfae.zip |
fix: getProcAddr function should return a function or 0
-rw-r--r-- | mpv.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |