[vlc-devel] [PATCH 14/20] lib: media_player: use player capabilities
Thomas Guillem
thomas at gllm.fr
Fri May 31 15:59:40 CEST 2019
---
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;
--
2.20.1
More information about the vlc-devel
mailing list