Commit 7b07a125 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

structures: Expose TrackList

parent 569e9956
......@@ -757,5 +757,28 @@ private:
#endif
#if LIBVLC_VERSION_INT >= LIBVLC_VERSION(4, 0, 0, 0)
class TrackList : public Internal<libvlc_media_tracklist_t>
{
public:
explicit TrackList( libvlc_media_tracklist_t *trackList )
: Internal{ trackList, libvlc_media_tracklist_delete }
{
}
size_t count() const
{
return libvlc_media_tracklist_count( *this );
}
MediaTrack at( size_t index ) const
{
return MediaTrack{ libvlc_media_tracklist_at( *this, index ) };
}
};
#endif
} // namespace VLC
#endif
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment