[vlc-commits] macosx: Save/share time remaining state in fullscreen controller

Marvin Scholz git at videolan.org
Thu Feb 22 22:41:57 CET 2018


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Thu Feb 22 22:41:45 2018 +0100| [ecca9675c9dceb3e9ba15f106cac2c26018a5b7f] | committer: Marvin Scholz

macosx: Save/share time remaining state in fullscreen controller

There was no identifier set for the time remaining label in the
fullscreen controller, this sets one to ensure the state is saved
correctly. Additionally this is the same identifier as the one in
the main window label, so make sure the state is shared between those.

Fix #19813

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

 modules/gui/macosx/VLCFSPanelController.m | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/modules/gui/macosx/VLCFSPanelController.m b/modules/gui/macosx/VLCFSPanelController.m
index 5996a031fb..d21c469494 100644
--- a/modules/gui/macosx/VLCFSPanelController.m
+++ b/modules/gui/macosx/VLCFSPanelController.m
@@ -125,6 +125,12 @@ static NSString *kAssociatedFullscreenRect = @"VLCFullscreenAssociatedWindowRect
     [_volumeSlider setMaxValue:[[VLCCoreInteraction sharedInstance] maxVolume]];
     [_volumeSlider setIntValue:AOUT_VOLUME_DEFAULT];
     [_volumeSlider setDefaultValue:AOUT_VOLUME_DEFAULT];
+
+    /* Identifier to store the state of the remaining or total time label,
+     * this is the same identifier as used for the window playback cotrols
+     * so the state is shared between those.
+     */
+    [_remainingOrTotalTime setRemainingIdentifier:@"DisplayTimeAsTimeRemaining"];
 }
 
 #undef setupButton



More information about the vlc-commits mailing list