glwindow: move unsetting queue_resize to _resize() instead of _draw()
authorMatthew Waters <matthew@centricular.com>
Wed, 27 Jul 2016 04:48:50 +0000 (14:48 +1000)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:21 +0000 (19:32 +0000)
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.

gst-libs/gst/gl/gstglwindow.c

index 410bc86a627ddd774489710a76f48c21053fbe9a..d30b911d77c76a2e8a22964fb048bd7e7b52ab98 100644 (file)
@@ -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;
 }