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
Leonhard Saam
libvlcpp
Commits
14b14cd2
Commit
14b14cd2
authored
Sep 15, 2020
by
Hugo Beauzée-Luyssen
Browse files
MediaPlayer: Deprecate old tracks API
parent
cc5c0531
Changes
1
Hide whitespace changes
Inline
Side-by-side
vlcpp/MediaPlayer.hpp
View file @
14b14cd2
...
...
@@ -967,6 +967,7 @@ public:
return
libvlc_audio_set_volume
(
*
this
,
i_volume
)
==
0
;
}
#if LIBVLC_VERSION_INT < LIBVLC_VERSION(4, 0, 0, 0)
/**
* Get number of available audio tracks.
*
...
...
@@ -1008,6 +1009,7 @@ public:
{
return
libvlc_audio_set_track
(
*
this
,
i_track
)
==
0
;
}
#endif
/**
* Get current audio channel.
...
...
@@ -1276,6 +1278,7 @@ public:
libvlc_video_set_aspect_ratio
(
*
this
,
ar
.
size
()
>
0
?
ar
.
c_str
()
:
nullptr
);
}
#if LIBVLC_VERSION_INT < LIBVLC_VERSION(4, 0, 0, 0)
/**
* Get current video subtitle.
*
...
...
@@ -1319,6 +1322,7 @@ public:
{
return
libvlc_video_set_spu
(
*
this
,
i_spu
);
}
#endif
#if LIBVLC_VERSION_INT < LIBVLC_VERSION(3, 0, 0, 0)
/**
...
...
@@ -1553,6 +1557,7 @@ public:
libvlc_video_set_teletext
(
*
this
,
i_page
);
}
#if LIBVLC_VERSION_INT < LIBVLC_VERSION(4, 0, 0, 0)
/**
* Get number of available video tracks.
*
...
...
@@ -1595,6 +1600,7 @@ public:
{
return
libvlc_video_set_track
(
*
this
,
i_track
);
}
#endif
/**
* Take a snapshot of the current video window.
...
...
@@ -1872,6 +1878,8 @@ public:
}
#endif
#if LIBVLC_VERSION_INT < LIBVLC_VERSION(4, 0, 0, 0)
private:
std
::
vector
<
TrackDescription
>
getTracksDescription
(
libvlc_track_description_t
*
tracks
)
const
{
...
...
@@ -1888,6 +1896,7 @@ private:
}
return
result
;
}
#endif
private:
std
::
shared_ptr
<
MediaPlayerEventManager
>
m_eventManager
;
...
...
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