[25/30] dri2videosink: fix cropping with software decoders
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Wed, 3 Oct 2012 13:02:18 +0000 (14:02 +0100)
committerThibault Saunier <thibault.saunier@collabora.com>
Wed, 21 Nov 2012 16:12:30 +0000 (13:12 -0300)
commit512233ed9520e9fcc452f13d473f4b8a850fa013
tree861579b436a0f7088251c9e18bcda2a100b258a7
parent7113d3cef0c7c1ea7198f309dcc968e0d9c2ac48
[25/30] dri2videosink: fix cropping with software decoders

Normal elements send a crop event, but ducati has another
per-buffer system to attach a crop rectangle. When a buffer
has no crop rectangle, but we received a crop event, use
the crop event data instead.

This fixes borders being wrongly displayed with software
decoders.
sys/dri2/gstdri2videosink.c
sys/dri2/gstdri2videosink.h