Commit 4749cd00 authored by David Fuhrmann's avatar David Fuhrmann

macosx: Do not lazy-load audio and video effect controllers anymore

Those need to be loaded at startup now, to make sure stored
profiles are correctly applied, even before the panels are opened.

Previously (VLC 2.2.x), a saved profile was mirrored into the
respective VLC config options, thus it was not needed before.
this is not done anymore.

refs #19260

(cherry picked from commit 7798c907)
Signed-off-by: default avatarDavid Fuhrmann <dfuhrmann@videolan.org>
parent 139ae598
......@@ -238,6 +238,10 @@ static VLCMain *sharedInstance = nil;
var_AddCallback(p_intf->obj.libvlc, "intf-toggle-fscontrol", ShowController, (__bridge void *)self);
var_AddCallback(p_intf->obj.libvlc, "intf-show", ShowController, (__bridge void *)self);
// Load them here already to apply stored profiles
_videoEffectsPanel = [[VLCVideoEffectsWindowController alloc] init];
_audioEffectsPanel = [[VLCAudioEffectsWindowController alloc] init];
playlist_t *p_playlist = pl_Get(p_intf);
if ([NSApp currentSystemPresentationOptions] & NSApplicationPresentationFullScreen)
var_SetBool(p_playlist, "fullscreen", YES);
......@@ -509,17 +513,11 @@ static VLCMain *sharedInstance = nil;
- (VLCAudioEffectsWindowController *)audioEffectsPanel
{
if (!_audioEffectsPanel)
_audioEffectsPanel = [[VLCAudioEffectsWindowController alloc] init];
return _audioEffectsPanel;
}
- (VLCVideoEffectsWindowController *)videoEffectsPanel
{
if (!_videoEffectsPanel)
_videoEffectsPanel = [[VLCVideoEffectsWindowController alloc] init];
return _videoEffectsPanel;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment