From 7874c74cfb59f5e8c4dedbc6d4a21c283ec970e3 Mon Sep 17 00:00:00 2001 From: Haihao Xiang Date: Wed, 19 Dec 2018 10:59:09 +0800 Subject: [PATCH] gstglwindow_x11: require a resize event at once after XResizeWindow Otherwise surface_width/surface_height stored in GstGLWindowPrivate isn't changed, sometimes an unnecessary reconfigure event is sent on sinkpad, then result in upstream reconfiguring. Example pipeline: gst-launch-1.0 videotestsrc ! msdkvpp ! glimagesink --- gst-libs/gst/gl/x11/gstglwindow_x11.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst-libs/gst/gl/x11/gstglwindow_x11.c b/gst-libs/gst/gl/x11/gstglwindow_x11.c index 29e5084c58..5cbf46a6b1 100644 --- a/gst-libs/gst/gl/x11/gstglwindow_x11.c +++ b/gst-libs/gst/gl/x11/gstglwindow_x11.c @@ -409,6 +409,8 @@ _show_window (GstGLWindow * window) if (!window_x11->parent_win) { XResizeWindow (window_x11->device, window_x11->internal_win_id, width, height); + + gst_gl_window_resize (window, width, height); } XMapWindow (window_x11->device, window_x11->internal_win_id);