GtkTreeViewColumn *p_column = NULL;
GtkListStore *p_filelist = NULL;
GtkListStore *p_playlist_store = NULL;
+ int canc = vlc_savecancel();
#ifndef NEED_GTK2_MAIN
gtk_set_locale ();
#ifdef NEED_GTK2_MAIN
msg_Dbg( p_intf, "Manage GTK keyboard events using threads" );
- while( !intf_ShouldDie( p_intf ) )
+ while( vlc_object_alive( p_intf ) )
{
Manage( p_intf );
#ifdef NEED_GTK2_MAIN
gdk_threads_leave();
#endif
+ vlc_restorecancel(canc);
}
/*****************************************************************************
}
vlc_object_unlock( p_input );
}
- else if( p_intf->p_sys->b_playing && !intf_ShouldDie( p_intf ) )
+ else if( p_intf->p_sys->b_playing && vlc_object_alive( p_intf ) )
{
GtkModeManage( p_intf );
p_intf->p_sys->b_playing = 0;
}
#ifndef NEED_GTK2_MAIN
- if( intf_ShouldDie( p_intf ) )
+ if( !vlc_object_alive( p_intf ) )
{
vlc_mutex_unlock( &p_intf->change_lock );