Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
04192313
Commit
04192313
authored
Oct 11, 2010
by
ivoire
Browse files
lua extensions: remove dummy function (moreover vlc_join is simpler to understand)
parent
2d0aee25
Changes
3
Hide whitespace changes
Inline
Side-by-side
modules/misc/lua/extension.c
View file @
04192313
...
...
@@ -136,7 +136,7 @@ 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
);
WaitForDeactivation
(
p_ext
);
vlc_join
(
p_ext
->
p_sys
->
thread
,
NULL
);
}
FOREACH_END
()
...
...
modules/misc/lua/extension.h
View file @
04192313
...
...
@@ -94,7 +94,6 @@ struct extension_sys_t
int
Activate
(
extensions_manager_t
*
p_mgr
,
extension_t
*
);
bool
IsActivated
(
extensions_manager_t
*
p_mgr
,
extension_t
*
);
int
Deactivate
(
extensions_manager_t
*
p_mgr
,
extension_t
*
);
void
WaitForDeactivation
(
extension_t
*
p_ext
);
int
__PushCommand
(
extension_t
*
ext
,
bool
unique
,
command_type_e
cmd
,
va_list
options
);
static
inline
int
PushCommand
(
extension_t
*
ext
,
int
cmd
,
...
)
{
...
...
modules/misc/lua/extension_thread.c
View file @
04192313
...
...
@@ -200,12 +200,6 @@ static int RemoveActivated( extensions_manager_t *p_mgr, extension_t *p_ext )
return
(
i_idx
>=
0
)
?
VLC_SUCCESS
:
VLC_EGENERIC
;
}
/** Wait for an extension to finish */
void
WaitForDeactivation
(
extension_t
*
p_ext
)
{
vlc_join
(
p_ext
->
p_sys
->
thread
,
NULL
);
}
/** Push a UI command */
int
__PushCommand
(
extension_t
*
p_ext
,
bool
b_unique
,
command_type_e
i_command
,
va_list
args
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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