[vlc-commits] egl(Wayland): fix wrong use of vlc_gl_Resize

Erwan Tulou git at videolan.org
Fri May 25 15:11:25 CEST 2018


vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Mon May 21 23:14:54 2018 +0200| [cf965e2673c9abbc0f3ee00b6ed45cb2947ba5f0] | committer: Rémi Denis-Courmont

egl(Wayland): fix wrong use of vlc_gl_Resize

vlc_gl_Resize is meant to report the change in size of the display to
the underlying egl library, not the inner video size within the display.

this fix makes embedded video within qt fully functional on Wayland with
the default -V gl option.

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cf965e2673c9abbc0f3ee00b6ed45cb2947ba5f0
---

 modules/video_output/opengl/display.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_output/opengl/display.c b/modules/video_output/opengl/display.c
index c391a6fc48..1c22540c36 100644
--- a/modules/video_output/opengl/display.c
+++ b/modules/video_output/opengl/display.c
@@ -246,7 +246,7 @@ static int Control (vout_display_t *vd, int query, va_list ap)
             c.align.vertical = VOUT_DISPLAY_ALIGN_TOP;
 
         vout_display_PlacePicture (&place, src, &c, false);
-        vlc_gl_Resize (sys->gl, place.width, place.height);
+        vlc_gl_Resize (sys->gl, c.display.width, c.display.height);
         if (vlc_gl_MakeCurrent (sys->gl) != VLC_SUCCESS)
             return VLC_EGENERIC;
         vout_display_opengl_SetWindowAspectRatio(sys->vgl, (float)place.width / place.height);



More information about the vlc-commits mailing list