waylandsink: Fix cropping for video with non-square aspect ratio
authorHugues Fruchet <hugues.fruchet@foss.st.com>
Mon, 11 Sep 2023 16:12:28 +0000 (18:12 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 20 Sep 2023 00:32:29 +0000 (01:32 +0100)
commit9394979d67c2c0093e163d2cefd0bd54503e85a0
treee2f16774b25e857639bdf59e1b7966e2b1187cb4
parentea2e829452e57fdb965ef27dfaf7aa35a679be6e
waylandsink: Fix cropping for video with non-square aspect ratio

Padding of unaligned content is still visible at right with some aspect-ratio.
Fix this by giving the original content resolution to wp_viewport_set_source()
instead of pixel aspect ratio scaled one.

Fixes !5259

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