]> git.sesse.net Git - vlc/commitdiff
macosx: disable fullscreen when closing video_output when output is embedded (like...
authorJean-Paul Saman <jpsaman@videolan.org>
Tue, 5 May 2009 15:05:03 +0000 (17:05 +0200)
committerJean-Paul Saman <jpsaman@videolan.org>
Sun, 24 May 2009 14:54:44 +0000 (16:54 +0200)
(cherry picked from commit 795fa06c631752687800bdff5ec44f742c0e72bd)

modules/gui/macosx/voutgl.m

index 6921963e1dcf7873066be847438108db03b43e44..7f88fe2b34ae0d012ab6672ed296b5fb8179e28e 100644 (file)
@@ -211,6 +211,19 @@ void CloseVideoGL ( vlc_object_t * p_this )
     msg_Dbg( p_this, "Closing" );
 
 #ifndef __x86_64__
+    /* If the fullscreen window is still open, close it */
+    if( p_vout->b_fullscreen )
+    {
+        p_vout->i_changes |= VOUT_FULLSCREEN_CHANGE;
+        if( p_vout->p_sys->b_embedded )
+        {
+            aglManage( p_vout );
+            var_SetBool( p_vout->p_parent, "fullscreen", false );
+        }
+        else
+            Manage( p_vout );
+    }
+
     if( p_vout->p_sys->b_embedded )
     {
         if( p_vout->p_sys->agl_ctx )