}
/* Update frame late count (except when doing preroll) */
- if( p_sys->i_pts && decoder_GetDisplayDate(p_sys->i_pts) <= mdate() &&
+ if( p_sys->i_pts && decoder_GetDisplayDate(p_dec, p_sys->i_pts) <= mdate() &&
!(p_block->i_flags & BLOCK_FLAG_PREROLL) )
{
p_sys->i_late_frames++;
if( p_sys->i_out_frames <= 0 )
{
p_sys->pts = p_block->i_pts;
- if( decoder_GetDisplayDate( p_block->i_pts ) < mdate() )
+ if( decoder_GetDisplayDate( p_dec, p_block->i_pts ) < mdate() )
{
block_Release( p_block );
*pp_block = NULL;
i_pts = p_block->i_pts ? p_block->i_pts : p_block->i_dts;
- if( decoder_GetDisplayDate( i_pts ) < mdate() )
+ if( decoder_GetDisplayDate( p_dec, i_pts ) < mdate() )
{
p_sys->i_late++;
}