[vlc-commits] macosx: properly store video-on-top state in playlist variable
David Fuhrmann
git at videolan.org
Thu Apr 24 21:37:43 CEST 2014
vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Thu Apr 24 21:35:15 2014 +0200| [495dbc7cb2021d3fed7e2ed075b5b3313da95efd] | committer: David Fuhrmann
macosx: properly store video-on-top state in playlist variable
Previous code was never called for fullscreen and video-on-top.
close #9999
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=495dbc7cb2021d3fed7e2ed075b5b3313da95efd
---
modules/gui/macosx/MainMenu.m | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/modules/gui/macosx/MainMenu.m b/modules/gui/macosx/MainMenu.m
index baa83d2..8c21735 100644
--- a/modules/gui/macosx/MainMenu.m
+++ b/modules/gui/macosx/MainMenu.m
@@ -907,7 +907,9 @@ static VLCMainMenu *_o_sharedInstance = nil;
if (p_input) {
vout_thread_t *p_vout = getVoutForActiveWindow();
if (p_vout) {
- var_ToggleBool(p_vout, "video-on-top");
+ BOOL b_fs = var_ToggleBool(p_vout, "video-on-top");
+ var_SetBool(pl_Get(p_intf), "video-on-top", b_fs);
+
vlc_object_release(p_vout);
}
vlc_object_release(p_input);
@@ -1478,10 +1480,6 @@ static VLCMainMenu *_o_sharedInstance = nil;
assert([data isKindOfClass:[VLCAutoGeneratedMenuContent class]]);
VLCAutoGeneratedMenuContent *menuContent = (VLCAutoGeneratedMenuContent *)data;
- /* Preserve settings across vouts via the playlist object: */
- if (!strcmp([menuContent name], "fullscreen") || !strcmp([menuContent name], "video-on-top"))
- var_Set(pl_Get(VLCIntf), [menuContent name] , [menuContent value]);
-
p_object = [menuContent vlcObject];
if (p_object != NULL) {
More information about the vlc-commits
mailing list