basetransform: Try suggesting caps on bad caps pad_alloc
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Mon, 29 Mar 2010 21:05:40 +0000 (18:05 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Mon, 26 Jul 2010 17:49:14 +0000 (14:49 -0300)
commit574e6ab423f0bba58c3bc88085d6c406677f76e4
treef4cebad497acf14cf8d420e883b2e992e34f48ed
parent4cecd73c93b0728cd0e4980ed8d0940c93f9129e
basetransform: Try suggesting caps on bad caps pad_alloc

When basetransform received an unsupported caps on pad_alloc
it just returned not-negotiated. This patch makes it query
the allowed caps between his sinkpad and upstream's srcpad
to find a caps to suggest.

This happens when dinamically switching pipeline elements
and upstream pad_allocs with the previous caps that was
being used.

Fixes #614296
libs/gst/base/gstbasetransform.c
tests/check/libs/transform1.c