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)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Wed, 3 Oct 2012 13:02:18 +0000 (14:02 +0100)
commitf58158358f387f4e5405b53566630eedfeb4b080
treee93abf4c8d32f067039b0b4504872628eb4b2c6c
parent908bf1bcf804d015dccc6ed965a087aea3300445
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