WARNING: This server is unstable and will be retired in the next days. If you want to keep this forum available, please request immediately a migration on the Nabble Support forum. Forums that don't receive any migration request will be deleted forever.

[PATCH 2/6] Fixed usage of wrong variables to determine current gui output window size for grab feature of vdpau output driver

View: New views
1 Messages — Rating Filter:   Alert me  

[PATCH 2/6] Fixed usage of wrong variables to determine current gui output window size for grab feature of vdpau output driver

by Andreas Auras-2 :: Rate this Message:

| View Threaded | Show Only this Message

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