summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2016-07-27 14:48:50 +1000
committerTim-Philipp Müller <tim@centricular.com>2017-12-09 19:32:21 +0000
commit85d5489f585d4140a04afdf29a460dc62aa5581e (patch)
treea83d0e722eec7d297d3fd817b48b2a9f2a457c14
parente41e98a12794789b215892aedd7f8f16c7d883d8 (diff)
glwindow: move unsetting queue_resize to _resize() instead of _draw()
Makes infinitely more sense and implementation were expecting that behaviour anyway and would enter a resize, draw, resize, draw, ... cycle instead of only resizing once.
-rw-r--r--gst-libs/gst/gl/gstglwindow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst-libs/gst/gl/gstglwindow.c b/gst-libs/gst/gl/gstglwindow.c
index 410bc86a6..d30b911d7 100644
--- a/gst-libs/gst/gl/gstglwindow.c
+++ b/gst-libs/gst/gl/gstglwindow.c
@@ -487,8 +487,6 @@ gst_gl_window_draw (GstGLWindow * window)
}
window_class->draw (window);
-
- window->queue_resize = FALSE;
}
/**
@@ -1174,4 +1172,6 @@ gst_gl_window_resize (GstGLWindow * window, guint width, guint height)
window->priv->surface_width = width;
window->priv->surface_height = height;
+
+ window->queue_resize = FALSE;
}