Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
ebc50a98
Commit
ebc50a98
authored
Jun 02, 2009
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libvlc: Use mutex_cleanup_push.
parent
63019159
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/control/event_async.c
src/control/event_async.c
+5
-2
No files found.
src/control/event_async.c
View file @
ebc50a98
...
...
@@ -223,15 +223,18 @@ static void * event_async_loop(void * arg)
libvlc_event_t
event
;
vlc_mutex_lock
(
&
queue
(
p_em
)
->
lock
);
vlc_cleanup_push
(
vlc_cleanup_lock
,
&
queue
(
p_em
)
->
lock
);
while
(
true
)
{
int
has_listener
=
pop
(
p_em
,
&
listener
,
&
event
);
mutex_cleanup_push
(
&
queue
(
p_em
)
->
lock
);
if
(
has_listener
)
listener
.
pf_callback
(
&
event
,
listener
.
p_user_data
);
// This might edit the queue, ->lock is recursive
else
vlc_cond_wait
(
&
queue
(
p_em
)
->
signal
,
&
queue
(
p_em
)
->
lock
);
}
vlc_cleanup_pop
();
}
vlc_mutex_unlock
(
&
queue
(
p_em
)
->
lock
);
return
NULL
;
}
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