Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
YangLei
libvlcpp
Commits
7b07a125
Commit
7b07a125
authored
Jun 12, 2020
by
Hugo Beauzée-Luyssen
Browse files
structures: Expose TrackList
parent
569e9956
Changes
1
Hide whitespace changes
Inline
Side-by-side
vlcpp/structures.hpp
View file @
7b07a125
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment