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
This commit is contained in:
Haihao Xiang 2018-12-19 10:59:09 +08:00 committed by Matthew Waters
parent d64a4b7a69
commit 7874c74cfb

View file

@ -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);