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
d20e98fb
Commit
d20e98fb
authored
Jan 28, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resource attach/detach requires the lock. Add vlc_assert_locked()
parent
bb09e059
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/input/resource.c
src/input/resource.c
+5
-0
No files found.
src/input/resource.c
View file @
d20e98fb
...
...
@@ -154,6 +154,7 @@ static void DestroyVout( input_resource_t *p_resource )
}
static
vout_thread_t
*
DetachVout
(
input_resource_t
*
p_resource
)
{
vlc_assert_locked
(
&
p_resource
->
lock
);
assert
(
p_resource
->
i_vout
==
0
);
vout_thread_t
*
p_vout
=
p_resource
->
p_vout_free
;
p_resource
->
p_vout_free
=
NULL
;
...
...
@@ -207,6 +208,8 @@ static vout_thread_t *RequestVout( input_resource_t *p_resource,
vout_thread_t
*
p_vout
,
video_format_t
*
p_fmt
,
bool
b_recycle
)
{
vlc_assert_locked
(
&
p_resource
->
lock
);
if
(
!
p_vout
&&
!
p_fmt
)
{
if
(
p_resource
->
p_vout_free
)
...
...
@@ -330,6 +333,7 @@ static void DestroyAout( input_resource_t *p_resource )
}
static
aout_instance_t
*
DetachAout
(
input_resource_t
*
p_resource
)
{
vlc_assert_locked
(
&
p_resource
->
lock
);
vlc_mutex_lock
(
&
p_resource
->
lock_hold
);
aout_instance_t
*
p_aout
=
p_resource
->
p_aout
;
...
...
@@ -342,6 +346,7 @@ static aout_instance_t *DetachAout( input_resource_t *p_resource )
static
aout_instance_t
*
RequestAout
(
input_resource_t
*
p_resource
,
aout_instance_t
*
p_aout
)
{
vlc_assert_locked
(
&
p_resource
->
lock
);
assert
(
p_resource
->
p_input
);
if
(
p_aout
)
...
...
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