Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
352ed528
Commit
352ed528
authored
Nov 04, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't lock the message queue until we need it
parent
48582a55
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/misc/messages.c
src/misc/messages.c
+3
-3
No files found.
src/misc/messages.c
View file @
352ed528
...
...
@@ -468,9 +468,6 @@ static void QueueMsg( vlc_object_t *p_this, int i_type, const char *psz_module,
p_obj
=
p_obj
->
p_parent
;
}
msg_bank_t
*
p_queue
=
&
QUEUE
;
vlc_mutex_lock
(
&
p_queue
->
lock
);
/* Fill message information fields */
p_item
->
i_type
=
i_type
;
p_item
->
i_object_id
=
(
uintptr_t
)
p_this
;
...
...
@@ -480,6 +477,9 @@ static void QueueMsg( vlc_object_t *p_this, int i_type, const char *psz_module,
p_item
->
psz_header
=
psz_header
;
PrintMsg
(
p_this
,
p_item
);
msg_bank_t
*
p_queue
=
&
QUEUE
;
vlc_mutex_lock
(
&
p_queue
->
lock
);
#define bank p_queue
for
(
int
i
=
0
;
i
<
bank
->
i_sub
;
i
++
)
{
...
...
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