vlc_thread_join( p_appthread );
vlc_object_release( p_appthread );
- free( vlc_global()->psz_vlcpath );
+ free( psz_vlcpath );
}
/* following functions are local */
*****************************************************************************/
static void* AppThread( vlc_object_t * p_this )
{
+ int canc = vlc_savecancel ();
VlcApplication * BeApp =
new VlcApplication("application/x-vnd.videolan-vlc");
vlc_object_attach( p_this, p_this->p_libvlc );
BeApp->Run();
vlc_object_detach( p_this );
delete BeApp;
+ vlc_restorecancel (canc);
return NULL;
}
BEntry entry( &info.ref );
entry.GetPath( &path );
path.GetParent( &path );
- vlc_global()->psz_vlcpath = strdup( path.Path() );
+ psz_vlcpath = strdup( path.Path() );
/* Tell the main thread we are finished initializing the BApplication */
vlc_thread_ready( p_this );
{
if( !fReadyToQuit )
{
- vlc_object_kill( p_this->p_libvlc );
+ libvlc_Quit( p_this->p_libvlc );
return false;
}