Commit a88c1a09 authored by Gildas Bazin's avatar Gildas Bazin

* src/interface/interface.c, modules/gui/wxwindows/video.cpp: couple of fixes.

parent 788a3c84
......@@ -128,12 +128,16 @@ VideoWindow::~VideoWindow()
if( p_vout )
{
if( !p_intf->psz_switch_intf )
{
if( vout_Control( p_vout, VOUT_CLOSE ) != VLC_SUCCESS )
vout_Control( p_vout, VOUT_REPARENT );
}
else
{
if( vout_Control( p_vout, VOUT_REPARENT ) != VLC_SUCCESS )
vout_Control( p_vout, VOUT_CLOSE );
}
}
p_intf->pf_request_window = NULL;
p_intf->pf_release_window = NULL;
......
......@@ -316,13 +316,13 @@ static void RunInterface( intf_thread_t *p_intf )
break;
}
/* Make sure the old interface is completely uninitialized */
module_Unneed( p_intf, p_intf->p_module );
/* Provide ability to switch the main interface on the fly */
psz_intf = p_intf->psz_switch_intf;
p_intf->psz_switch_intf = NULL;
/* Make sure the old interface is completely uninitialized */
module_Unneed( p_intf, p_intf->p_module );
vlc_mutex_lock( &p_intf->object_lock );
p_intf->b_die = VLC_FALSE;
p_intf->b_dead = VLC_FALSE;
......
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