From 21a12166211d8ee5956a460273401e70e2817f2e Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Sat, 18 May 2002 12:36:03 +0000 Subject: small fix to still frame logic. this improves recovering when decoder is too late. the old code adjusted metronom's video_vpts, causing false "video jumps". CVS patchset: 1906 CVS date: 2002/05/18 12:36:03 --- src/xine-engine/video_out.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/xine-engine/video_out.c b/src/xine-engine/video_out.c index 569177f4d..c190e46e1 100644 --- a/src/xine-engine/video_out.c +++ b/src/xine-engine/video_out.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: video_out.c,v 1.96 2002/05/02 01:44:44 siggi Exp $ + * $Id: video_out.c,v 1.97 2002/05/18 12:36:03 miguelfreitas Exp $ * * frame allocation / queuing / scheduling / output functions */ @@ -409,13 +409,8 @@ static vo_frame_t *get_next_frame (vos_t *this, int64_t cur_vpts) { /* keep playing still frames */ img = this->vo.duplicate_frame (&this->vo, this->img_backup ); - - do { - /* always restore duration so drift correction shouldn't cause any trouble */ - img->duration = this->img_backup->duration; - this->metronom->got_video_frame(this->metronom, img); - } while (img->vpts < (cur_vpts - img->duration/2) ); - + img->vpts = cur_vpts; + return img; } else { -- cgit v1.2.3