gl/dispmanx: egl_show should resize the window only if there is no render rectangle set

https://bugzilla.gnome.org/show_bug.cgi?id=772699
This commit is contained in:
Munez 2016-10-11 16:58:48 +05:30 committed by Matthew Waters
parent 1cf3d0a590
commit 429135face

View file

@ -278,8 +278,10 @@ gst_gl_window_dispmanx_egl_show (GstGLWindow * window)
GstGLWindowDispmanxEGL *window_egl = GST_GL_WINDOW_DISPMANX_EGL (window);
if (!window_egl->visible) {
window_resize (window_egl, window_egl->preferred_width,
window_egl->preferred_height, TRUE);
if (window_egl->render_rect.w <= 0 || window_egl->render_rect.h <= 0) {
window_resize (window_egl, window_egl->preferred_width,
window_egl->preferred_height, TRUE);
}
window_egl->visible = TRUE;
}
}