mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
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:
parent
d64a4b7a69
commit
7874c74cfb
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue