[vlc-commits] macosx: do not start fullscreen when splitter is activated
David Fuhrmann
git at videolan.org
Fri Oct 25 20:08:55 CEST 2013
vlc/vlc-2.1 | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Fri Oct 25 20:03:43 2013 +0200| [c1597f464586867004b66751ce16ea0612354a20] | committer: David Fuhrmann
macosx: do not start fullscreen when splitter is activated
This is a quick fix which need to be improved later (see todo).
close #9579
(cherry picked from commit 311180dfa09579366760c748b6ca6790c76e5b72)
Signed-off-by: David Fuhrmann <david.fuhrmann at googlemail.com>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=c1597f464586867004b66751ce16ea0612354a20
---
modules/gui/macosx/VLCVoutWindowController.m | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/modules/gui/macosx/VLCVoutWindowController.m b/modules/gui/macosx/VLCVoutWindowController.m
index cd613f5..55c177e 100644
--- a/modules/gui/macosx/VLCVoutWindowController.m
+++ b/modules/gui/macosx/VLCVoutWindowController.m
@@ -155,7 +155,12 @@
// TODO: find a cleaner way for "start in fullscreen"
// Start in fs, because either prefs settings, or fullscreen button was pressed before
- if (var_InheritBool(VLCIntf, "fullscreen") || var_GetBool(pl_Get(VLCIntf), "fullscreen")) {
+
+ char *psz_splitter = var_GetString(pl_Get(VLCIntf), "video-splitter");
+ BOOL b_have_splitter = psz_splitter != NULL && *psz_splitter != '\0';
+ free(psz_splitter);
+
+ if (!b_have_splitter && (var_InheritBool(VLCIntf, "fullscreen") || var_GetBool(pl_Get(VLCIntf), "fullscreen"))) {
// this is not set when we start in fullscreen because of
// fullscreen settings in video prefs the second time
More information about the vlc-commits
mailing list