mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 21:18:52 +00:00
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:
parent
1cf3d0a590
commit
429135face
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue