- vaapisink: handle geometry changes of X11 windows
authorHolger Kaelberer <hk@getslash.de>
Tue, 5 Nov 2013 13:01:11 +0000 (14:01 +0100)
committerHolger Kaelberer <hk@getslash.de>
Tue, 5 Nov 2013 13:14:35 +0000 (14:14 +0100)
commit922f256c2517aebf019dbf60f724c49c57a5cf52
tree5d7fffdab97020508700df8ef0778fd6866e5c43
parentaff531aa53f781050dd054afdf87f7067e10299b
- vaapisink: handle geometry changes of X11 windows

By now changes of window geometry in X11 are not handled at all,
leading to an invalid render rect when the geometry of the underlying
window is changed dynamically.

With this vaapisink handles Expose and ConfigureNotify XEvents by
default in a seperate event-thread similar to what does xvimagesink.
For each of these events we enforce an update of window-size from
X-geometry, a recalculation of vaapisink's render rect, if necessary,
and _expose().

The default of handle_events=true can be changed via
gst_x_overlay_handle_events().
gst/vaapi/gstvaapisink.c
gst/vaapi/gstvaapisink.h