[vlc-devel] [PATCH 2/2] lua: Join all threads
Hugo Beauzée-Luyssen
hugo at beauzee.fr
Mon Mar 27 17:03:34 CEST 2017
Not only the active ones.
---
modules/lua/extension.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/lua/extension.c b/modules/lua/extension.c
index 32009cc0ba..a7521739b5 100644
--- a/modules/lua/extension.c
+++ b/modules/lua/extension.c
@@ -151,7 +151,6 @@ void Close_Extension( vlc_object_t *p_this )
if( !p_ext ) break;
msg_Dbg( p_mgr, "Deactivating '%s'", p_ext->psz_title );
Deactivate( p_mgr, p_ext );
- vlc_join( p_ext->p_sys->thread, NULL );
}
FOREACH_END()
@@ -168,6 +167,7 @@ void Close_Extension( vlc_object_t *p_this )
{
if( !p_ext )
break;
+ vlc_join( p_ext->p_sys->thread, NULL );
if( p_ext->p_sys->L )
lua_close( p_ext->p_sys->L );
free( p_ext->psz_name );
--
2.11.0
More information about the vlc-devel
mailing list