summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Auras <yak54@inkennet.de>2012-01-12 00:28:08 +0100
committerAndreas Auras <yak54@inkennet.de>2012-01-12 00:28:08 +0100
commit28d7359356f93cb5fc78af60706b5a4ff3292079 (patch)
treedf21676cda1ee39faa5a9fb6bda70168068db066
parent58f0bc6a2f2d215efcbdd598b4a56cdf78442a7d (diff)
downloadxine-lib-28d7359356f93cb5fc78af60706b5a4ff3292079.tar.gz
xine-lib-28d7359356f93cb5fc78af60706b5a4ff3292079.tar.bz2
Set clipping region of displayed output surfaces to rendered region
Because displayed output surfaces are only increased in size when gui window dimension changes the surface size could be greater than the actual gui window size. --HG-- extra : rebase_source : 4f7be362af8ccfe5851900bda095d0949d1c6e15
-rw-r--r--src/video_out/video_out_vdpau.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_out/video_out_vdpau.c b/src/video_out/video_out_vdpau.c
index b7ab08e04..bcbdbc93d 100644
--- a/src/video_out/video_out_vdpau.c
+++ b/src/video_out/video_out_vdpau.c
@@ -1914,7 +1914,7 @@ static void vdpau_display_frame (vo_driver_t *this_gen, vo_frame_t *frame_gen)
vdpau_grab_current_output_surface( this, frame->vo_frame.vpts );
vdp_queue_get_time( vdp_queue, &current_time );
- vdp_queue_display( vdp_queue, this->output_surface[this->current_output_surface], 0, 0, 0 ); /* display _now_ */
+ vdp_queue_display( vdp_queue, this->output_surface[this->current_output_surface], this->sc.gui_width, this->sc.gui_height, 0 ); /* display _now_ */
vdpau_shift_queue( this_gen );
int dm;
@@ -1951,7 +1951,7 @@ static void vdpau_display_frame (vo_driver_t *this_gen, vo_frame_t *frame_gen)
if ( stream_speed > 0 )
current_time += frame->vo_frame.duration * 1000000ull * XINE_FINE_SPEED_NORMAL / (180 * stream_speed);
- vdp_queue_display( vdp_queue, this->output_surface[this->current_output_surface], 0, 0, current_time );
+ vdp_queue_display( vdp_queue, this->output_surface[this->current_output_surface], this->sc.gui_width, this->sc.gui_height, current_time );
vdpau_shift_queue( this_gen );
}
}
@@ -1964,7 +1964,7 @@ static void vdpau_display_frame (vo_driver_t *this_gen, vo_frame_t *frame_gen)
fprintf(stderr, "vo_vdpau: vdp_video_mixer_render error : %s\n", vdp_get_error_string( st ) );
vdpau_grab_current_output_surface( this, frame->vo_frame.vpts );
- vdp_queue_display( vdp_queue, this->output_surface[this->current_output_surface], 0, 0, 0 );
+ vdp_queue_display( vdp_queue, this->output_surface[this->current_output_surface], this->sc.gui_width, this->sc.gui_height, 0 );
vdpau_shift_queue( this_gen );
}