summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Thommeret <hftom@free.fr>2008-12-19 21:48:06 +0000
committerChristophe Thommeret <hftom@free.fr>2008-12-19 21:48:06 +0000
commit00fa8c11404ed364edab49ebf7001bd9de4cca3d (patch)
treedcb43fd99e1d0b3d1200fbe955748e54f76f494e
parente40dc38d6ebc1dae925fac780c099bc4a52cdd69 (diff)
downloadxine-lib-00fa8c11404ed364edab49ebf7001bd9de4cca3d.tar.gz
xine-lib-00fa8c11404ed364edab49ebf7001bd9de4cca3d.tar.bz2
Fix queue_block.
-rw-r--r--src/video_out/video_out_vdpau.c4
1 files 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 */