mirror of
https://code.videolan.org/videolan/vlc
synced 2024-10-03 01:31:53 +02:00
Extensions: hopefully fix a race condition on deactivation
This commit is contained in:
parent
1f3bd0cc83
commit
ef5d32ea57
@ -199,7 +199,9 @@ static int RemoveActivated( extensions_manager_t *p_mgr, extension_t *p_ext )
|
||||
void WaitForDeactivation( extension_t *p_ext )
|
||||
{
|
||||
void *pointer = NULL;
|
||||
vlc_mutex_lock( &p_ext->p_sys->command_lock );
|
||||
vlc_cond_signal( &p_ext->p_sys->wait );
|
||||
vlc_mutex_unlock( &p_ext->p_sys->command_lock );
|
||||
vlc_join( p_ext->p_sys->thread, &pointer );
|
||||
}
|
||||
|
||||
@ -383,7 +385,7 @@ static void* Run( void *data )
|
||||
}
|
||||
|
||||
vlc_mutex_unlock( &p_ext->p_sys->command_lock );
|
||||
msg_Dbg( p_mgr, "Extension thread ending..." );
|
||||
msg_Dbg( p_mgr, "Extension thread end: '%s'", p_ext->psz_title );
|
||||
|
||||
// Note: At this point, the extension should be deactivated
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user