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
0a15eecf
Commit
0a15eecf
authored
May 05, 2010
by
JPeg
Browse files
Extensions: fix vlc.deactivate() malfunction
Inspired by jetru's patches, thank you. This should fix #3451
parent
69d7fdea
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/misc/lua/extension_thread.c
View file @
0a15eecf
...
...
@@ -146,12 +146,16 @@ int Deactivate( extensions_manager_t *p_mgr, extension_t *p_ext )
}
/* Free the list of commands */
FreeCommands
(
p_ext
->
p_sys
->
command
);
if
(
p_ext
->
p_sys
->
command
)
FreeCommands
(
p_ext
->
p_sys
->
command
->
next
);
/* Push command */
struct
command_t
*
cmd
=
calloc
(
1
,
sizeof
(
struct
command_t
)
);
cmd
->
i_command
=
CMD_DEACTIVATE
;
p_ext
->
p_sys
->
command
=
cmd
;
if
(
p_ext
->
p_sys
->
command
)
p_ext
->
p_sys
->
command
->
next
=
cmd
;
else
p_ext
->
p_sys
->
command
=
cmd
;
vlc_cond_signal
(
&
p_ext
->
p_sys
->
wait
);
vlc_mutex_unlock
(
&
p_ext
->
p_sys
->
command_lock
);
...
...
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