Commit af8e8ad2 authored by Steve Lhomme's avatar Steve Lhomme

decoder: create VLC_TS_OLDEST for special flush calls

parent 7be01aba
......@@ -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 )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment