[vlc-commits] gl: initialize fullscreen state correctly

Rémi Denis-Courmont git at videolan.org
Sun Sep 14 19:12:28 CEST 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Sep 13 17:50:24 2014 +0300| [e0c33c3cfad9b2a8df15afd551e3242650b1c946] | committer: Rémi Denis-Courmont

gl: initialize fullscreen state correctly

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

 modules/video_output/gl.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/video_output/gl.c b/modules/video_output/gl.c
index defe479..3d1d19a 100644
--- a/modules/video_output/gl.c
+++ b/modules/video_output/gl.c
@@ -152,6 +152,11 @@ static int Open (vlc_object_t *obj)
     if (sys->vgl == NULL)
         goto error;
 
+    bool fs = vd->cfg->is_fullscreen;
+    if (vout_window_SetFullScreen (sys->gl->surface, fs))
+        fs = false;
+    vout_display_SendEventFullscreen (vd, fs);
+
     vd->sys = sys;
     vd->info.has_pictures_invalid = false;
     vd->info.has_event_thread = false;



More information about the vlc-commits mailing list