vlc | branch: master | Thomas Guillem <[email protected]> | 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; _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
