[vlc-devel] commit: macosx: disable fullscreen when closing video_output when output is embedded ( like in the mozilla browserplugins) (Jean-Paul Saman )

git version control git at videolan.org
Mon May 25 00:36:28 CEST 2009


vlc | branch: 1.0-bugfix | Jean-Paul Saman <jpsaman at videolan.org> | Tue May  5 17:05:03 2009 +0200| [8d2f29e7e716e3cc8c9a37f73039ac5c631d3d12] | committer: Jean-Paul Saman 

macosx: disable fullscreen when closing video_output when output is embedded (like in the mozilla browserplugins)
(cherry picked from commit 795fa06c631752687800bdff5ec44f742c0e72bd)

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

 modules/gui/macosx/voutgl.m |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/modules/gui/macosx/voutgl.m b/modules/gui/macosx/voutgl.m
index 6921963..7f88fe2 100644
--- a/modules/gui/macosx/voutgl.m
+++ b/modules/gui/macosx/voutgl.m
@@ -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 )




More information about the vlc-devel mailing list