tests: Add a check for the new compositor pad-is-obscured optimization
authorNirbheek Chauhan <nirbheek@centricular.com>
Fri, 13 Mar 2015 00:40:52 +0000 (06:10 +0530)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 1 May 2015 10:57:00 +0000 (11:57 +0100)
commitdbbfba76ea74640a7f580dc0a828e035af35aff0
tree08a63d6eb06e99df748164a72faa8b01bd6df8c8
parent070777498f094ad24846ed7c2c906176de5cdba7
tests: Add a check for the new compositor pad-is-obscured optimization

We verify that all the buffers on an obscured sinkpad are skipped by overriding
the map() function in the GstVideoMeta of the buffers to set a variable when
called. We also test that the buffers do get mapped when they're not obscured.

Blame^WCredit for the GstVideoMeta map() idea goes to Tim.

https://bugzilla.gnome.org/show_bug.cgi?id=746147
tests/check/elements/compositor.c