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
dce4c397
Commit
dce4c397
authored
Mar 21, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder: cosmetic changes
parent
9531a842
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
src/input/decoder.c
src/input/decoder.c
+14
-11
No files found.
src/input/decoder.c
View file @
dce4c397
...
@@ -1879,20 +1879,23 @@ void input_DecoderDecode( decoder_t *p_dec, block_t *p_block, bool b_do_pace )
...
@@ -1879,20 +1879,23 @@ void input_DecoderDecode( decoder_t *p_dec, block_t *p_block, bool b_do_pace )
bool
input_DecoderIsEmpty
(
decoder_t
*
p_dec
)
bool
input_DecoderIsEmpty
(
decoder_t
*
p_dec
)
{
{
decoder_owner_sys_t
*
p_owner
=
p_dec
->
p_owner
;
decoder_owner_sys_t
*
p_owner
=
p_dec
->
p_owner
;
assert
(
!
p_owner
->
b_waiting
);
assert
(
!
p_owner
->
b_waiting
);
bool
b_empty
=
block_FifoCount
(
p_dec
->
p_owner
->
p_fifo
)
<=
0
;
if
(
block_FifoCount
(
p_dec
->
p_owner
->
p_fifo
)
>
0
)
return
false
;
bool
b_empty
;
if
(
b_empty
)
{
vlc_mutex_lock
(
&
p_owner
->
lock
);
vlc_mutex_lock
(
&
p_owner
->
lock
);
/* TODO subtitles support */
if
(
p_owner
->
fmt
.
i_cat
==
VIDEO_ES
&&
p_owner
->
p_vout
!=
NULL
)
if
(
p_owner
->
fmt
.
i_cat
==
VIDEO_ES
&&
p_owner
->
p_vout
)
b_empty
=
vout_IsEmpty
(
p_owner
->
p_vout
);
b_empty
=
vout_IsEmpty
(
p_owner
->
p_vout
);
else
if
(
p_owner
->
fmt
.
i_cat
==
AUDIO_ES
&&
p_owner
->
p_aout
)
else
if
(
p_owner
->
fmt
.
i_cat
==
AUDIO_ES
&&
p_owner
->
p_aout
!=
NULL
)
b_empty
=
aout_DecIsEmpty
(
p_owner
->
p_aout
);
b_empty
=
aout_DecIsEmpty
(
p_owner
->
p_aout
);
else
b_empty
=
true
;
/* TODO subtitles support */
vlc_mutex_unlock
(
&
p_owner
->
lock
);
vlc_mutex_unlock
(
&
p_owner
->
lock
);
}
return
b_empty
;
return
b_empty
;
}
}
...
...
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