[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
Tue May 12 14:26:51 CEST 2009
vlc | branch: master | Jean-Paul Saman <jpsaman at videolan.org> | Tue May 5 17:05:03 2009 +0200| [795fa06c631752687800bdff5ec44f742c0e72bd] | committer: Jean-Paul Saman
macosx: disable fullscreen when closing video_output when output is embedded (like in the mozilla browserplugins)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=795fa06c631752687800bdff5ec44f742c0e72bd
---
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