summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMunez <munezbn.dev@gmail.com>2016-10-11 16:58:48 +0530
committerMatthew Waters <matthew@centricular.com>2016-10-18 11:23:42 +1100
commit429135face745e90d4719de11faa7aafc75ea0e8 (patch)
tree670ef95f5f56aa2e703341ad7d6bef207f04930d
parent1cf3d0a59013e851714705e9d0fffe4fb08db7d8 (diff)
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
-rw-r--r--gst-libs/gst/gl/dispmanx/gstglwindow_dispmanx_egl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gst-libs/gst/gl/dispmanx/gstglwindow_dispmanx_egl.c b/gst-libs/gst/gl/dispmanx/gstglwindow_dispmanx_egl.c
index aaf097a8b..f6bfa78df 100644
--- a/gst-libs/gst/gl/dispmanx/gstglwindow_dispmanx_egl.c
+++ b/gst-libs/gst/gl/dispmanx/gstglwindow_dispmanx_egl.c
@@ -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;
}
}