]> git.sesse.net Git - vlc/blobdiff - modules/misc/lua/extension_thread.c
Extensions: fix extensions manager's locking scheme
[vlc] / modules / misc / lua / extension_thread.c
index 56612112444ef28e65218dbad4b71c16e13d7385..1d569e93db7b8d1ba3740fd4c1bed31b80cc4582 100644 (file)
@@ -60,7 +60,9 @@ int Activate( extensions_manager_t *p_mgr, extension_t *p_ext )
     }
 
     /* Add this script to the activated extensions list */
+    vlc_mutex_lock( &p_mgr->p_sys->lock );
     ARRAY_APPEND( p_mgr->p_sys->activated_extensions, p_ext );
+    vlc_mutex_unlock( &p_mgr->p_sys->lock );
 
     /* Prepare first command */
     p_sys->command = calloc( 1, sizeof( struct command_t ) );