[vlc-commits] [Git][videolan/vlc][master] 2 commits: macosx: Initialise volume from actual player value if possible

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Mon Jan 6 18:22:18 UTC 2025



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
16ac8e61 by Claudio Cambra at 2025-01-06T02:54:23+09:00
macosx: Initialise volume from actual player value if possible

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -
f18bed76 by Claudio Cambra at 2025-01-06T02:54:24+09:00
macosx: Initialise mute state based on value from player

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -


1 changed file:

- modules/gui/macosx/playqueue/VLCPlayerController.m


Changes:

=====================================
modules/gui/macosx/playqueue/VLCPlayerController.m
=====================================
@@ -604,7 +604,11 @@ static int BossCallback(vlc_object_t *p_this,
                                                             &player_vout_callbacks,
                                                             (__bridge void *)self);
 
-        _volume = VLCVolumeDefault;
+        const float aoutVolume = vlc_player_aout_GetVolume(_p_player);
+        _volume = aoutVolume >= 0.f ? aoutVolume : VLCVolumeDefault;
+
+        const int aoutMute = vlc_player_aout_IsMuted(_p_player);
+        _mute = aoutMute == -1 ? NO : aoutMute;
 
         _aLoopTime = -1;
         _bLoopTime = -1;



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/68e4fa428f180022bcb58654671bd6ff6a36f2e3...f18bed76d3f790adf1e861429e82b98a7ea88f27

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/68e4fa428f180022bcb58654671bd6ff6a36f2e3...f18bed76d3f790adf1e861429e82b98a7ea88f27
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list