test: vaapicontext: fix draw callback with multiple videos
authorMichael Olbrich <m.olbrich@pengutronix.de>
Thu, 18 Jun 2020 18:25:18 +0000 (20:25 +0200)
committerMichael Olbrich <m.olbrich@pengutronix.de>
Fri, 31 Jul 2020 12:02:33 +0000 (14:02 +0200)
commitd11ba513bb7f717c45a35dd742b02fe0b2f23383
tree4bb7ec0316063d128750741279f9f57c193b9dc7
parent24be7b8aaec7dd427652236b8d4f4af4e35024be
test: vaapicontext: fix draw callback with multiple videos

The callback is called for both windows. So make sure that
gst_video_overlay_set_render_rectangle() is called for the correct one.
Otherwise, the left video will be randomly moved behind the right video.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/342>
tests/examples/test-vaapicontext.c