From 88d7b22d40e25e4e6efc33aa4838f67fe72cad2e Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Fri, 21 Aug 2015 13:42:18 -0700 Subject: [PATCH] glimagesink: update display size before sending event This is minor issue, as the reconfigure event is asynchronous. Basically, update width/height before sending the event. --- ext/gl/gstglimagesink.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/gl/gstglimagesink.c b/ext/gl/gstglimagesink.c index febad5de22..8e299806de 100644 --- a/ext/gl/gstglimagesink.c +++ b/ext/gl/gstglimagesink.c @@ -1775,15 +1775,15 @@ gst_glimage_sink_do_resize (GstGLImageSink * gl_sink, gint width, gint height) && (gl_sink->window_width != 0) && (gl_sink->window_height != 0); + gl_sink->window_width = width; + gl_sink->window_height = height; + if (reconfigure) { GST_DEBUG ("Sending reconfigure event on sinkpad."); gst_pad_push_event (GST_BASE_SINK (gl_sink)->sinkpad, gst_event_new_reconfigure ()); } - gl_sink->window_width = width; - gl_sink->window_height = height; - /* default reshape */ if (!do_reshape) { if (gl_sink->keep_aspect_ratio) {