Commit 795fa06c authored by Jean-Paul Saman's avatar Jean-Paul Saman

macosx: disable fullscreen when closing video_output when output is embedded...

macosx: disable fullscreen when closing video_output when output is embedded (like in the mozilla browserplugins)
parent 3b04148e
...@@ -211,6 +211,19 @@ void CloseVideoGL ( vlc_object_t * p_this ) ...@@ -211,6 +211,19 @@ void CloseVideoGL ( vlc_object_t * p_this )
msg_Dbg( p_this, "Closing" ); msg_Dbg( p_this, "Closing" );
#ifndef __x86_64__ #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->b_embedded )
{ {
if( p_vout->p_sys->agl_ctx ) if( p_vout->p_sys->agl_ctx )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment