Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
1d500945
Commit
1d500945
authored
Apr 23, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder: simplify and avoid immediate unlock/lock pair
parent
53ab1eaf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
src/input/decoder.c
src/input/decoder.c
+5
-8
No files found.
src/input/decoder.c
View file @
1d500945
...
@@ -1138,21 +1138,18 @@ static void DecoderWaitDate( decoder_t *p_dec,
...
@@ -1138,21 +1138,18 @@ static void DecoderWaitDate( decoder_t *p_dec,
if
(
*
pb_reject
||
i_deadline
<
0
)
if
(
*
pb_reject
||
i_deadline
<
0
)
return
;
return
;
for
(
;;
)
vlc_mutex_lock
(
&
p_owner
->
lock
);
do
{
{
vlc_mutex_lock
(
&
p_owner
->
lock
);
if
(
p_owner
->
b_flushing
||
p_owner
->
b_exit
)
if
(
p_owner
->
b_flushing
||
p_owner
->
b_exit
)
{
{
*
pb_reject
=
true
;
*
pb_reject
=
true
;
vlc_mutex_unlock
(
&
p_owner
->
lock
);
break
;
break
;
}
}
int
i_ret
=
vlc_cond_timedwait
(
&
p_owner
->
wait_request
,
&
p_owner
->
lock
,
i_deadline
);
vlc_mutex_unlock
(
&
p_owner
->
lock
);
if
(
i_ret
)
break
;
}
}
while
(
vlc_cond_timedwait
(
&
p_owner
->
wait_request
,
&
p_owner
->
lock
,
i_deadline
)
==
0
);
vlc_mutex_unlock
(
&
p_owner
->
lock
);
}
}
static
void
DecoderPlayAudio
(
decoder_t
*
p_dec
,
aout_buffer_t
*
p_audio
,
static
void
DecoderPlayAudio
(
decoder_t
*
p_dec
,
aout_buffer_t
*
p_audio
,
...
...
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