[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>
Tue, 6 Nov 2012 16:03:43 +0000 (13:03 -0300)
commit7fb6fb9e6bd43b2e25ea345a10e1379add148169
tree031177af2f2b65ae486f947826fd9c0710c63c7b
parent046e06b2729b7b6892954d98907608d7fee0b3e3
[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