waylandsink: Crop surfaces to their display width height
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Tue, 29 Aug 2023 18:55:03 +0000 (14:55 -0400)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 7 Sep 2023 20:48:05 +0000 (20:48 +0000)
commit7851f988861feaefa62b767092bc0ebb0f198fa6
tree58b4507c7074843e73b559bb54aab55edb085933
parent1254dd49bea07d77e687e85b599c958f46f0b24a
waylandsink: Crop surfaces to their display width height

Setting the surface source rectangle has been omitted so far. As a side effect
surface created with padded width/height are being scaled down. Fix this using
the viewporter source rectangle configuration. This can later be enhanced
to support crop meta.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5298>
subprojects/gst-plugins-bad/gst-libs/gst/wayland/gstwlwindow.c