Commit cf965e26 authored by Erwan Tulou's avatar Erwan Tulou Committed by 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's avatarRémi Denis-Courmont <remi@remlab.net>
parent d9682c01
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment