[vlc-commits] window: pass fullscreen state at initialization

Rémi Denis-Courmont git at videolan.org
Thu Oct 29 21:38:56 CET 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Oct 29 22:09:34 2015 +0200| [b529f60c287f45cd43d186f6de77d7f117a5c53b] | committer: Rémi Denis-Courmont

window: pass fullscreen state at initialization

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

 src/video_output/video_output.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 08b7bed..8a70ce7 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -164,6 +164,7 @@ static vout_thread_t *VoutCreate(vlc_object_t *object,
     if (vout->p->splitter_name == NULL) {
         vout_window_cfg_t wcfg = {
             .is_standalone = !var_InheritBool(vout, "embedded-video"),
+            .is_fullscreen = var_GetBool(vout, "fullscreen"),
             .type = VOUT_WINDOW_TYPE_INVALID,
             // TODO: take pixel A/R, crop and zoom into account
 #ifdef __APPLE__
@@ -177,8 +178,6 @@ static vout_thread_t *VoutCreate(vlc_object_t *object,
         vout_window_t *window = vout_display_window_New(vout, &wcfg);
         if (window != NULL)
         {
-            if (var_InheritBool(vout, "fullscreen"))
-                vout_window_SetFullScreen(window, true);
             if (var_InheritBool(vout, "video-wallpaper"))
                 vout_window_SetState(window, VOUT_WINDOW_STATE_BELOW);
             else if (var_InheritBool(vout, "video-on-top"))



More information about the vlc-commits mailing list