compositor/blend.c: fix MT fill_checker for YUY2
authorMathieu Duponchelle <mathieu@centricular.com>
Tue, 29 Dec 2020 22:42:08 +0000 (23:42 +0100)
committerMathieu Duponchelle <mduponchelle1@gmail.com>
Tue, 29 Dec 2020 22:48:08 +0000 (22:48 +0000)
commit247f821826c644889fd981e7d86ecec745eb9600
treebf316afede9667f74283443a1d1f410ca02b1457
parent8ff5079e5eef37b9bd5b212350f0cefbd9546b1b
compositor/blend.c: fix MT fill_checker for YUY2

The initial byte offset should be calculated from the stride,
not from the dest_add variable

Example pipeline:

gst-launch-1.0 videotestsrc ! video/x-raw, width=1920, height=1080, format=YUY2 ! \
  queue ! compositor sink_0::xpos=200 ! video/x-raw, format=YUY2 ! xvimagesink

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/988>
gst/compositor/blend.c