[vlc-commits] macosx: do not start fullscreen when splitter is activated
David Fuhrmann
git at videolan.org
Fri Oct 25 20:08:10 CEST 2013
vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Fri Oct 25 20:03:43 2013 +0200| [311180dfa09579366760c748b6ca6790c76e5b72] | 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
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=311180dfa09579366760c748b6ca6790c76e5b72
---
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