[vlc-commits] lib: media_player: use player capabilities
Thomas Guillem
git at videolan.org
Mon Jun 3 16:16:31 CEST 2019
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri May 31 15:18:56 2019 +0200| [72ec308f39e69a61ca27cafb41795c8822aad4a3] | committer: Thomas Guillem
lib: media_player: use player capabilities
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=72ec308f39e69a61ca27cafb41795c8822aad4a3
---
lib/media_player.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/media_player.c b/lib/media_player.c
index 3a7a238ac3..8a7a8df6a0 100644
--- a/lib/media_player.c
+++ b/lib/media_player.c
@@ -172,8 +172,8 @@ on_capabilities_changed(vlc_player_t *player, int old_caps, int new_caps, void *
libvlc_event_t event;
- bool old_seekable = old_caps & VLC_INPUT_CAPABILITIES_SEEKABLE;
- bool new_seekable = new_caps & VLC_INPUT_CAPABILITIES_SEEKABLE;
+ bool old_seekable = old_caps & VLC_PLAYER_CAP_SEEK;
+ bool new_seekable = new_caps & VLC_PLAYER_CAP_SEEK;
if (new_seekable != old_seekable)
{
event.type = libvlc_MediaPlayerSeekableChanged;
@@ -181,8 +181,8 @@ on_capabilities_changed(vlc_player_t *player, int old_caps, int new_caps, void *
libvlc_event_send(&mp->event_manager, &event);
}
- bool old_pauseable = old_caps & VLC_INPUT_CAPABILITIES_PAUSEABLE;
- bool new_pauseable = new_caps & VLC_INPUT_CAPABILITIES_PAUSEABLE;
+ bool old_pauseable = old_caps & VLC_PLAYER_CAP_PAUSE;
+ bool new_pauseable = new_caps & VLC_PLAYER_CAP_PAUSE;
if (new_pauseable != old_pauseable)
{
event.type = libvlc_MediaPlayerPausableChanged;
More information about the vlc-commits
mailing list