[vlc-commits] tailored workaround just for media_read callback
Alberto Invernizzi
git at videolan.org
Wed Apr 29 13:12:28 CEST 2020
vlc/python | branch: master | Alberto Invernizzi <alby.inve at gmail.com> | Tue Mar 31 19:13:25 2020 +0200| [1120e99f497c9f7114762b3462aad9e9aa56af6b] | committer: Alberto Invernizzi
tailored workaround just for media_read callback
> http://git.videolan.org/gitweb.cgi/vlc/python.git/?a=commit;h=1120e99f497c9f7114762b3462aad9e9aa56af6b
---
generator/generate.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/generator/generate.py b/generator/generate.py
index 049d736..031f5e7 100755
--- a/generator/generate.py
+++ b/generator/generate.py
@@ -422,6 +422,7 @@ class Par(object):
else:
f = {'int*': Flag.Out,
'unsigned*': Flag.Out,
+ 'unsigned char*': Flag.Out,
'libvlc_media_track_info_t**': Flag.Out,
}.get(self.type, Flag.In) # default
if default is None:
@@ -1048,6 +1049,7 @@ class PythonGenerator(_Generator):
type2class_out = {
'char**': 'ctypes.POINTER(ctypes.c_char_p)',
+ 'unsigned char*': 'ctypes.POINTER(ctypes.c_char)',
}
# Python classes, i.e. classes for which we want to
More information about the vlc-commits
mailing list