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
9531a842
Commit
9531a842
authored
Mar 21, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder: inline DecoderSignalWait()
parent
5a234320
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
16 deletions
+7
-16
src/input/decoder.c
src/input/decoder.c
+7
-16
No files found.
src/input/decoder.c
View file @
9531a842
...
...
@@ -169,21 +169,6 @@ static bool DecoderIsFlushing( decoder_t *p_dec )
return
b_flushing
;
}
static
void
DecoderSignalWait
(
decoder_t
*
p_dec
)
{
decoder_owner_sys_t
*
p_owner
=
p_dec
->
p_owner
;
vlc_mutex_lock
(
&
p_owner
->
lock
);
if
(
p_owner
->
b_waiting
)
{
p_owner
->
b_has_data
=
true
;
vlc_cond_signal
(
&
p_owner
->
wait_acknowledge
);
}
vlc_mutex_unlock
(
&
p_owner
->
lock
);
}
static
block_t
*
DecoderBlockFlushNew
()
{
block_t
*
p_null
=
block_Alloc
(
128
);
...
...
@@ -450,7 +435,13 @@ static picture_t *vout_new_buffer( decoder_t *p_dec )
return
p_picture
;
/* */
DecoderSignalWait
(
p_dec
);
vlc_mutex_lock
(
&
p_owner
->
lock
);
if
(
p_owner
->
b_waiting
)
{
p_owner
->
b_has_data
=
true
;
vlc_cond_signal
(
&
p_owner
->
wait_acknowledge
);
}
vlc_mutex_unlock
(
&
p_owner
->
lock
);
/* Check the decoder doesn't leak pictures */
vout_FixLeaks
(
p_owner
->
p_vout
);
...
...
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