'Get media descriptor\'s elementary streams description
Note, you need to call L{parse}() or play the media at least once
before calling this function.
Not doing this will result in an empty array.
The result must be freed with L{tracks_release}.
@version: LibVLC 2.1.0 and later.'

def tracks_get(self):

    mediaTrack_pp = ctypes.POINTER(MediaTrack)()
    n = libvlc_media_tracks_get(self, ctypes.byref(mediaTrack_pp))
    info = ctypes.cast(ctypes.mediaTrack_pp, ctypes.POINTER((ctypes.POINTER(MediaTrack) * n)))
    return info
