From 00fa8c11404ed364edab49ebf7001bd9de4cca3d Mon Sep 17 00:00:00 2001 From: Christophe Thommeret Date: Fri, 19 Dec 2008 21:48:06 +0000 Subject: Fix queue_block. --- src/video_out/video_out_vdpau.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video_out/video_out_vdpau.c b/src/video_out/video_out_vdpau.c index 4b163ed74..d868f8d32 100644 --- a/src/video_out/video_out_vdpau.c +++ b/src/video_out/video_out_vdpau.c @@ -680,7 +680,7 @@ static void vdpau_display_frame (vo_driver_t *this_gen, vo_frame_t *frame_gen) VdpTime last_time; if ( this->init_queue>1 ) - vdp_queue_block( vdp_queue, this->output_surface[this->current_output_surface ^ 1], &last_time ); + vdp_queue_block( vdp_queue, this->output_surface[this->current_output_surface], &last_time ); uint32_t layer_count; VdpLayer layer[2]; @@ -714,7 +714,7 @@ static void vdpau_display_frame (vo_driver_t *this_gen, vo_frame_t *frame_gen) if ( this->init_queue<2 ) ++this->init_queue; this->current_output_surface ^= 1; if ( this->init_queue>1 ) - vdp_queue_block( vdp_queue, this->output_surface[this->current_output_surface ^ 1], &last_time ); + vdp_queue_block( vdp_queue, this->output_surface[this->current_output_surface], &last_time ); if ( (this->sc.gui_width > this->output_surface_width[this->current_output_surface]) || (this->sc.gui_height > this->output_surface_height[this->current_output_surface]) ) { /* recreate output surface to match window size */ -- cgit v1.2.3