From 58f0bc6a2f2d215efcbdd598b4a56cdf78442a7d Mon Sep 17 00:00:00 2001 From: Andreas Auras Date: Thu, 12 Jan 2012 00:27:18 +0100 Subject: Fixed usage of wrong variables to determine current gui output window size for grab feature of vdpau output driver Fixed usage of wrong variables to determine current gui output window size for grab feature of vdpau output driver --HG-- extra : rebase_source : f605be7e19142756f3ab388e558d8e65e3ddba5d --- 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 7d92302c2..b7ab08e04 100644 --- a/src/video_out/video_out_vdpau.c +++ b/src/video_out/video_out_vdpau.c @@ -1601,8 +1601,8 @@ static void vdpau_grab_current_output_surface (vdpau_driver_t *this, int64_t vpt frame->grab_frame.vpts = -1; VdpOutputSurface grab_surface = this->output_surface[this->current_output_surface]; - int width = this->output_surface_width[this->current_output_surface]; - int height = this->output_surface_height[this->current_output_surface]; + int width = this->sc.gui_width; + int height = this->sc.gui_height; /* take cropping parameters into account */ width = width - frame->grab_frame.crop_left - frame->grab_frame.crop_right; -- cgit v1.2.3