Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
b601fe0a
Commit
b601fe0a
authored
Dec 20, 2009
by
Antoine Cellerier
Committed by
dionoea
Dec 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix mutex cancellation.
parent
28e52ddb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
modules/misc/lua/libs/misc.c
modules/misc/lua/libs/misc.c
+2
-1
No files found.
modules/misc/lua/libs/misc.c
View file @
b601fe0a
...
...
@@ -181,9 +181,10 @@ static int vlclua_lock_and_wait( lua_State *L )
intf_sys_t
*
p_sys
=
p_intf
->
p_sys
;
vlc_mutex_lock
(
&
p_sys
->
lock
);
mutex_cleanup_push
(
&
p_sys
->
lock
);
while
(
!
p_sys
->
exiting
)
vlc_cond_wait
(
&
p_sys
->
wait
,
&
p_sys
->
lock
);
vlc_
mutex_unlock
(
&
p_sys
->
lock
);
vlc_
cleanup_pop
(
);
lua_pushboolean
(
L
,
1
);
return
1
;
}
...
...
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