Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
67464ac6
Commit
67464ac6
authored
Mar 27, 2017
by
Hugo Beauzée-Luyssen
Browse files
lua: Join all threads
Not only the active ones.
parent
ce3fbfca
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/lua/extension.c
View file @
67464ac6
...
...
@@ -151,23 +151,18 @@ 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
()
msg_Dbg
(
p_mgr
,
"All extensions are now deactivated"
);
ARRAY_RESET
(
p_mgr
->
p_sys
->
activated_extensions
);
vlc_mutex_destroy
(
&
p_mgr
->
lock
);
vlc_mutex_destroy
(
&
p_mgr
->
p_sys
->
lock
);
free
(
p_mgr
->
p_sys
);
p_mgr
->
p_sys
=
NULL
;
/* Free extensions' memory */
FOREACH_ARRAY
(
p_ext
,
p_mgr
->
extensions
)
{
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
);
...
...
@@ -189,6 +184,11 @@ void Close_Extension( vlc_object_t *p_this )
}
FOREACH_END
()
vlc_mutex_destroy
(
&
p_mgr
->
lock
);
vlc_mutex_destroy
(
&
p_mgr
->
p_sys
->
lock
);
free
(
p_mgr
->
p_sys
);
p_mgr
->
p_sys
=
NULL
;
ARRAY_RESET
(
p_mgr
->
extensions
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment