Fixed usage of wrong variables to determine current gui output window size for grab feature of vdpau output driver
[2]
diff --git a/src/video_out/video_out_vdpau.c b/src/video_out/video_out_vdpau.c
index 7d92302..b7ab08e 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;
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free!
http://p.sf.net/sfu/Citrix-VDIinabox_______________________________________________
xine-devel mailing list
xine-devel@...
https://lists.sourceforge.net/lists/listinfo/xine-devel