gstreamer/gst-libs/gst/gl/x11
David Bender b4bdb75a80 gstglwindow_x11: fix resize
This patch was taken from #629#note_178766, the comment made
at the time was:

The root issue is a mismatch between the initialization of render_rect
in GstGLWindowX11Private and what's expected in the draw_cb function.
Because render_rect is not explicitly initialized to a width and height
of -1 (unlike gstglwindow_wayland_egl.c which does initialize to -1),
the less-than check for explicitly-set render_rect at gstglwindow_x11.c:453-454
always fails, even when the parent_win has been set and the render rectangle
has never been set.

Maybe this came from copying the similar check in the wayland code? Regardless,
I think the correct inequality should be '<= 0' (on both lines).

Alternatively initialization could be changed, but other sinks, e.g.
xvimagesink don't appear to use -1 to mean "unset" render_rect this way.

The issue can be reproduced by running the example in
tests/examples/gl/qt/videooverlay/ on X11, and resizing the output
window

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/701>
2020-06-12 01:36:22 +00:00
..
gstglcontext_glx.c gl/context/glx: dump GLXFBConfig information to debug logs 2020-03-02 19:36:50 +11:00
gstglcontext_glx.h gl: remove more deprecated type aliases 2018-02-08 21:14:56 +11:00
gstgldisplay_x11.c gl: x11: skip gst_gl_display_x11_new_with_display() from gir 2020-05-19 10:17:21 +02:00
gstgldisplay_x11.h libs: Documentation cleanup 2018-04-02 08:53:28 +02:00
gstglwindow_x11.c gstglwindow_x11: fix resize 2020-06-12 01:36:22 +00:00
gstglwindow_x11.h gl: do not include GL headers in public gstgl headers 2017-12-09 19:32:29 +00:00
xcb_event_source.c gl: don't export symbols that are not supposed to be public 2017-12-09 19:32:29 +00:00
xcb_event_source.h gl/x11: use xcb instead of libX11 2017-12-09 19:32:24 +00:00