From 7905ebacdd0b8994e815246c95efc4add363dfae Mon Sep 17 00:00:00 2001 From: cosven Date: Thu, 7 Feb 2019 23:35:14 +0800 Subject: fix: getProcAddr function should return a function or 0 --- mpv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit