compositor: Actually use the output resolution for clamping
authorNirbheek Chauhan <nirbheek@centricular.com>
Wed, 26 Aug 2015 10:10:16 +0000 (15:40 +0530)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 26 Aug 2015 12:03:05 +0000 (15:03 +0300)
commitf12ef34410afcdf727f5182328b745050b5490f3
tree833d09f0d0a2b9d30fdd71749d9085b23a91dc13
parent708936de490b6afe55d32771629dcc8c4b3e89fc
compositor: Actually use the output resolution for clamping

The obscured check in compositor was using the dimensions of the pad to clamp
the h/w of the pad instead of the output resolution, and was doing an incorrect
calculation to do so. Fix that by simplifying the whole calculation by using
corner coordinates. Also add a test for this bug which fell through the cracks,
and just skip all the obscured tests if the pad's alpha is 0.0.

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