Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
dbeba38d
Commit
dbeba38d
authored
Oct 02, 2008
by
Laurent Aimar
Browse files
Added vout flush.
parent
21bb8a7e
Changes
1
Show whitespace changes
Inline
Side-by-side
src/input/decoder.c
View file @
dbeba38d
...
...
@@ -1332,7 +1332,8 @@ static void DecoderProcessVideo( decoder_t *p_dec, block_t *p_block, bool b_flus
{
decoder_owner_sys_t
*
p_owner
=
(
decoder_owner_sys_t
*
)
p_dec
->
p_owner
;
// TODO flush
if
(
b_flush
&&
p_owner
->
p_vout
)
VoutFlushPicture
(
p_owner
->
p_vout
,
1
);
if
(
p_owner
->
p_packetizer
)
{
...
...
@@ -1373,7 +1374,10 @@ static void DecoderProcessAudio( decoder_t *p_dec, block_t *p_block, bool b_flus
{
decoder_owner_sys_t
*
p_owner
=
(
decoder_owner_sys_t
*
)
p_dec
->
p_owner
;
if
(
b_flush
&&
p_owner
->
p_aout
&&
p_owner
->
p_aout_input
)
{
// TODO flush
}
if
(
p_owner
->
p_packetizer
)
{
...
...
@@ -1491,11 +1495,11 @@ static int DecoderProcess( decoder_t *p_dec, block_t *p_block )
else
#endif
{
bool
b_flushing
=
p_owner
->
i_preroll_end
==
INT64_MAX
;
bool
b_flush
=
false
;
if
(
p_block
)
{
const
bool
b_flushing
=
p_owner
->
i_preroll_end
==
INT64_MAX
;
DecoderUpdatePreroll
(
&
p_owner
->
i_preroll_end
,
p_block
);
b_flush
=
!
b_flushing
&&
(
p_block
->
i_flags
&
BLOCK_FLAG_CORE_FLUSH
)
!=
0
;
...
...
Write
Preview
Supports
Markdown
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