[vlc-devel] [PATCH 3/3] GLX: transmit the window size to update the aspect ratio

Adrien Maglo magsoft at videolan.org
Mon Nov 21 16:48:00 CET 2016


---
 modules/video_output/xcb/glx.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/video_output/xcb/glx.c b/modules/video_output/xcb/glx.c
index a7fb71b..c4c02be 100644
--- a/modules/video_output/xcb/glx.c
+++ b/modules/video_output/xcb/glx.c
@@ -235,6 +235,7 @@ static int Control (vout_display_t *vd, int query, va_list ap)
         vout_display_PlacePicture (&place, source, cfg, false);
 
         vlc_gl_MakeCurrent (sys->gl);
+        vout_display_opengl_SetWindowSize(sys->vgl, place.width, place.height);
         glViewport (place.x, place.y, place.width, place.height);
         vlc_gl_ReleaseCurrent (sys->gl);
         return VLC_SUCCESS;
-- 
2.9.3



More information about the vlc-devel mailing list