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
f765e5a0
Commit
f765e5a0
authored
Jun 12, 2020
by
Hugo Beauzée-Luyssen
Browse files
structures: Expose new MediaTrack fields
parent
504fdbbd
Changes
1
Hide whitespace changes
Inline
Side-by-side
vlcpp/structures.hpp
View file @
f765e5a0
...
...
@@ -341,6 +341,28 @@ public:
}
#endif
#if LIBVLC_VERSION_INT >= LIBVLC_VERSION(3, 0, 0, 0)
const
std
::
string
&
idStr
()
const
{
return
m_idStr
;
}
bool
idStable
()
const
{
return
m_idStable
;
}
const
std
::
string
&
name
()
const
{
return
m_name
;
}
bool
selected
()
const
{
return
m_selected
;
}
#endif
////////////////////////////////////////////////////////////////////////////
// Subtitles specific
////////////////////////////////////////////////////////////////////////////
...
...
@@ -360,11 +382,19 @@ public:
,
m_profile
(
c
->
i_profile
)
,
m_level
(
c
->
i_level
)
,
m_bitrate
(
c
->
i_bitrate
)
#if LIBVLC_VERSION_INT >= LIBVLC_VERSION(4, 0, 0, 0)
,
m_idStable
(
c
->
id_stable
)
,
m_selected
(
c
->
selected
)
#endif
{
if
(
c
->
psz_language
!=
NULL
)
m_language
=
c
->
psz_language
;
if
(
c
->
psz_description
!=
NULL
)
m_description
=
c
->
psz_description
;
if
(
c
->
psz_id
!=
nullptr
)
m_idStr
=
c
->
psz_id
;
if
(
c
->
psz_name
)
m_name
=
c
->
psz_name
;
switch
(
c
->
i_type
)
{
case
libvlc_track_audio
:
...
...
@@ -420,6 +450,12 @@ private:
#if LIBVLC_VERSION_INT >= LIBVLC_VERSION(3, 0, 0, 0)
Orientation
m_orientation
;
Projection
m_projection
;
#endif
#if LIBVLC_VERSION_INT >= LIBVLC_VERSION(4, 0, 0, 0)
std
::
string
m_idStr
;
bool
m_idStable
;
std
::
string
m_name
;
bool
m_selected
;
#endif
// Subtitles
std
::
string
m_encoding
;
...
...
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