[vlc-commits] macosx: use player capabilities

Thomas Guillem git at videolan.org
Mon Jun 3 16:16:32 CEST 2019


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Jun  3 08:08:09 2019 +0200| [8a6c802eb472800d8ab2049b8dcfdb206ad44d01] | committer: Thomas Guillem

macosx: use player capabilities

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8a6c802eb472800d8ab2049b8dcfdb206ad44d01
---

 modules/gui/macosx/playlist/VLCPlayerController.m | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/modules/gui/macosx/playlist/VLCPlayerController.m b/modules/gui/macosx/playlist/VLCPlayerController.m
index 816ac2ade1..64dc7de0e6 100644
--- a/modules/gui/macosx/playlist/VLCPlayerController.m
+++ b/modules/gui/macosx/playlist/VLCPlayerController.m
@@ -984,11 +984,11 @@ static const struct vlc_player_aout_cbs player_aout_callbacks = {
 
 - (void)capabilitiesChanged:(int)newCapabilities
 {
-    _seekable = newCapabilities & VLC_INPUT_CAPABILITIES_SEEKABLE ? YES : NO;
-    _rewindable = newCapabilities & VLC_INPUT_CAPABILITIES_REWINDABLE ? YES : NO;
-    _pausable = newCapabilities & VLC_INPUT_CAPABILITIES_PAUSEABLE ? YES : NO;
-    _recordable = newCapabilities & VLC_INPUT_CAPABILITIES_RECORDABLE ? YES : NO;
-    _rateChangable = newCapabilities & VLC_INPUT_CAPABILITIES_CHANGE_RATE ? YES : NO;
+    _seekable = newCapabilities & VLC_PLAYER_CAP_SEEK ? YES : NO;
+    _rewindable = newCapabilities & VLC_PLAYER_CAP_REWIND ? YES : NO;
+    _pausable = newCapabilities & VLC_PLAYER_CAP_PAUSE ? YES : NO;
+    _recordable = YES;
+    _rateChangable = newCapabilities & VLC_PLAYER_CAP_CHANGE_RATE ? YES : NO;
     [_defaultNotificationCenter postNotificationName:VLCPlayerCapabilitiesChanged
                                               object:self];
 }



More information about the vlc-commits mailing list