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
01bec007
Commit
01bec007
authored
Jun 18, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a potential race condition in input_resource_HoldVout*.
parent
fee7f059
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
src/input/resource.c
src/input/resource.c
+3
-6
No files found.
src/input/resource.c
View file @
01bec007
...
@@ -275,15 +275,12 @@ static vout_thread_t *RequestVout( input_resource_t *p_resource,
...
@@ -275,15 +275,12 @@ static vout_thread_t *RequestVout( input_resource_t *p_resource,
}
}
static
vout_thread_t
*
HoldVout
(
input_resource_t
*
p_resource
)
static
vout_thread_t
*
HoldVout
(
input_resource_t
*
p_resource
)
{
{
if
(
p_resource
->
i_vout
<=
0
)
return
NULL
;
/* TODO FIXME: p_resource->pp_vout order is NOT stable */
/* TODO FIXME: p_resource->pp_vout order is NOT stable */
vlc_mutex_lock
(
&
p_resource
->
lock_hold
);
vlc_mutex_lock
(
&
p_resource
->
lock_hold
);
vout_thread_t
*
p_vout
=
p_resource
->
pp_vout
[
0
]
;
vout_thread_t
*
p_vout
=
p_resource
->
i_vout
>
0
?
p_resource
->
pp_vout
[
0
]
:
NULL
;
if
(
p_vout
)
vlc_object_hold
(
p_vout
);
vlc_object_hold
(
p_vout
);
vlc_mutex_unlock
(
&
p_resource
->
lock_hold
);
vlc_mutex_unlock
(
&
p_resource
->
lock_hold
);
...
...
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