Commit 7874c74c authored by Haihao Xiang's avatar Haihao Xiang Committed by Matthew Waters

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
parent d64a4b7a
Pipeline #15685 passed with stages
in 11 minutes and 56 seconds
......@@ -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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment