gstreamer/subprojects/gst-plugins-bad/ext/wayland
Robert Mader e7c9960783 waylandsink: Ensure correct mapping of area_surface
If the `area_surface` got unmapped when changing to the `READY` or
`NULL` state, we currently don't remap it when playback resumes and
`wp_viewporter` is supported. Without `wp_viewporter` we do remap
it, but rather unintentionally and also when not wanted.

On Weston this has not been a big problem as it so far wrongly maps
subsurfaces of unmapped surfaces anyway - i.e. only the black
background was missing on resume. On other compositors and future
Weston this prevents the `video_surface` to get remapped.

Shuffle things around to ensure `area_surface` is mapped in the
right situations and do some minor cleanup.

See also https://gitlab.freedesktop.org/wayland/weston/-/issues/426

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1483>
2022-01-17 13:17:57 +00:00
..
gstwaylandsink.c
gstwaylandsink.h
meson.build
wlbuffer.c
wlbuffer.h
wldisplay.c waylandsink: Use wl_surface_damage_buffer() instead of wl_surface_damage() 2022-01-13 19:39:59 +00:00
wldisplay.h
wllinuxdmabuf.c
wllinuxdmabuf.h
wlshmallocator.c
wlshmallocator.h
wlvideoformat.c
wlvideoformat.h
wlwindow.c waylandsink: Ensure correct mapping of area_surface 2022-01-17 13:17:57 +00:00
wlwindow.h waylandsink: Ensure correct mapping of area_surface 2022-01-17 13:17:57 +00:00