[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>
Thu, 15 Nov 2012 21:31:20 +0000 (18:31 -0300)
commitacf72fed22ea3463b5eebeb8a2f76d0aeaccf1b3
treeccd354b7bf2d115c2f64ca0f4d8a5765c951ac25
parent7d9d88ae1ef627d59b955e68bd9c3040f0ec10bb
[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