[vlc-commits] python-vlc: mark libvlc_media_track_info_t** as OUT parameter
Olivier Aubert
git at videolan.org
Tue Mar 29 12:45:15 CEST 2011
vlc/python | branch: master | Olivier Aubert <olivier.aubert at liris.cnrs.fr> | Tue Mar 29 12:42:11 2011 +0200| [b0f171be1e351f76b4619139498b5901d97825ca] | committer: Olivier Aubert
python-vlc: mark libvlc_media_track_info_t** as OUT parameter
It does not completely fix the libvlc_media_get_tracks_info() wrapper though.
> http://git.videolan.org/gitweb.cgi/vlc/python.git/?a=commit;h=b0f171be1e351f76b4619139498b5901d97825ca
---
generate.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/generate.py b/generate.py
index 08d2380..f69235a 100755
--- a/generate.py
+++ b/generate.py
@@ -318,6 +318,7 @@ class Par(object):
else:
f = {'int*': Flag.Out,
'unsigned*': Flag.Out,
+ 'libvlc_media_track_info_t**': Flag.Out,
}.get(self.type, Flag.In) # default
if default is None:
return f, # 1-tuple
@@ -690,7 +691,7 @@ class PythonGenerator(_Generator):
'libvlc_media_list_view_t*': 'MediaListView',
'libvlc_media_player_t*': 'MediaPlayer',
'libvlc_media_stats_t*': 'ctypes.POINTER(MediaStats)',
- 'libvlc_media_track_info_t**': 'ctypes.POINTER(ctypes.POINTER(MediaTrackInfo))',
+ 'libvlc_media_track_info_t**': 'ctypes.POINTER(ctypes.c_void_p)',
'libvlc_rectangle_t*': 'ctypes.POINTER(Rectangle)',
'libvlc_time_t': 'ctypes.c_longlong',
'libvlc_track_description_t*': 'ctypes.POINTER(TrackDescription)',
More information about the vlc-commits
mailing list