Commit 9decc181 authored by Laurent Aimar's avatar Laurent Aimar

Fixed signal and input release order.

parent 74729214
......@@ -776,9 +776,9 @@ MainInputManager::~MainInputManager()
{
if( p_input )
{
emit inputChanged( NULL );
var_DelCallback( p_input, "state", PLItemChanged, this );
vlc_object_release( p_input );
emit inputChanged( NULL );
}
var_DelCallback( p_intf->p_libvlc, "volume-change", VolumeChanged, this );
......@@ -808,9 +808,9 @@ void MainInputManager::customEvent( QEvent *event )
vlc_mutex_lock( &p_intf->change_lock );
if( p_input && ( p_input->b_dead || !vlc_object_alive (p_input) ) )
{
emit inputChanged( NULL );
var_DelCallback( p_input, "state", PLItemChanged, this );
vlc_object_release( p_input );
emit inputChanged( NULL );
p_input = NULL;
vlc_mutex_unlock( &p_intf->change_lock );
return;
......
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