From 3af2095a8b756b747db80ca9e0a75f07b3cf5e25 Mon Sep 17 00:00:00 2001 From: Andreas Auras Date: Sun, 3 Apr 2011 10:33:18 +0200 Subject: Fixes backed out changeset 67f59d571138 (still broken) --- src/video_out/video_out_vdpau.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/video_out/video_out_vdpau.c b/src/video_out/video_out_vdpau.c index fb56c953a..3bb2bd652 100644 --- a/src/video_out/video_out_vdpau.c +++ b/src/video_out/video_out_vdpau.c @@ -1744,7 +1744,7 @@ static void vdpau_display_frame (vo_driver_t *this_gen, vo_frame_t *frame_gen) VdpTime last_time; - if ( this->init_queue>1 ) + if ( this->init_queue >= this->queue_length ) vdp_queue_block( vdp_queue, this->output_surface[this->current_output_surface], &last_time ); uint32_t layer_count; @@ -1822,7 +1822,7 @@ static void vdpau_display_frame (vo_driver_t *this_gen, vo_frame_t *frame_gen) dm = this->deinterlacers_method[this->deinterlace_method_hd]; if ( (dm != DEINT_HALF_TEMPORAL) && (dm != DEINT_HALF_TEMPORAL_SPATIAL) && frame->vo_frame.future_frame ) { /* process second field */ - if ( this->init_queue>=this->queue_length ) { + if ( this->init_queue >= this->queue_length ) { #ifdef LOCKDISPLAY XUnlockDisplay(this->display); #endif -- cgit v1.2.3