jaseg / python-mpv

Python interface to the awesome mpv media player
https://git.jaseg.de/python-mpv.git
Other
547 stars 68 forks source link

fix: getProcAddr function should return a function or 0 #83

Closed cosven closed 5 years ago

cosven commented 5 years ago

From the example in official repo:https://github.com/mpv-player/mpv-examples/blob/master/libmpv/qt_opengl/mpvwidget.cpp#L11, we can see that the get_proc_addr return a void * function. We also should have c_void_p as return type.

An example to test this functionality: https://gist.github.com/cosven/b313de2acce1b7e15afda263779c0afc

jaseg commented 5 years ago

Looks good, thank you!

jaseg commented 5 years ago

I've linked to your gist from the README in 7117de40 for future reference