[vlc-commits] decoder: create VLC_TS_OLDEST for special flush calls
Steve Lhomme
git at videolan.org
Wed May 2 18:42:17 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed May 2 16:22:04 2018 +0200| [af8e8ad2b0e7d1acba1be9b0873c395d24e576f8] | committer: Steve Lhomme
decoder: create VLC_TS_OLDEST for special flush calls
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=af8e8ad2b0e7d1acba1be9b0873c395d24e576f8
---
src/input/decoder.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/input/decoder.c b/src/input/decoder.c
index ef43431211..335de896b8 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -150,6 +150,8 @@ struct decoder_owner_sys_t
#define DECODER_SPU_VOUT_WAIT_DURATION ((int)(0.200*CLOCK_FREQ))
#define BLOCK_FLAG_CORE_PRIVATE_RELOADED (1 << BLOCK_FLAG_CORE_PRIVATE_SHIFT)
+#define VLC_TS_OLDEST (VLC_TS_INVALID + 1)
+
/**
* Load a decoder module
*/
@@ -1007,7 +1009,7 @@ static int DecoderPlayVideo( decoder_t *p_dec, picture_t *p_picture,
msg_Dbg( p_dec, "end of video preroll" );
if( p_vout )
- vout_Flush( p_vout, VLC_TS_INVALID+1 );
+ vout_Flush( p_vout, VLC_TS_OLDEST );
}
if( p_picture->date == VLC_TS_INVALID )
@@ -1502,7 +1504,7 @@ static void DecoderProcessFlush( decoder_t *p_dec )
else if( p_dec->fmt_out.i_cat == VIDEO_ES )
{
if( p_owner->p_vout )
- vout_Flush( p_owner->p_vout, VLC_TS_INVALID+1 );
+ vout_Flush( p_owner->p_vout, VLC_TS_OLDEST );
}
else if( p_dec->fmt_out.i_cat == SPU_ES )
{
More information about the vlc-commits
mailing list