From 8bfc45f642ac7a6f56016b805cb12d492f766fa2 Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Tue, 2 Oct 2007 18:16:55 +0000 Subject: [PATCH] Oops fix compilation. --- modules/codec/ffmpeg/video.c | 2 +- modules/codec/quicktime.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/codec/ffmpeg/video.c b/modules/codec/ffmpeg/video.c index a45e3ac0e6..afa4b21b6f 100644 --- a/modules/codec/ffmpeg/video.c +++ b/modules/codec/ffmpeg/video.c @@ -573,7 +573,7 @@ picture_t *E_(DecodeVideo)( decoder_t *p_dec, block_t **pp_block ) } /* 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++; diff --git a/modules/codec/quicktime.c b/modules/codec/quicktime.c index 5c513e987c..56a0af7efe 100644 --- a/modules/codec/quicktime.c +++ b/modules/codec/quicktime.c @@ -520,7 +520,7 @@ static aout_buffer_t *DecodeAudio( decoder_t *p_dec, block_t **pp_block ) 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; @@ -836,7 +836,7 @@ static picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block ) 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++; } -- 2.39.2