capsfilter: don't assume _get_caps still has to be
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Wed, 20 Jul 2011 12:05:27 +0000 (14:05 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 26 Aug 2011 08:23:18 +0000 (10:23 +0200)
commit341d7a4c0dbd69f86faaf1ffd2e94e99bac6f8c9
tree14369484a33bd7284767f9c75dc64c0048be0991
parentc1988b7e55da4b4feea2c38b3b3e95116ee3b2f5
capsfilter: don't assume _get_caps still has to be

_set_caps only gets called when the buffer is actually pushed, so there
is a reasonably big window between when the initial caps are retrieved
and when the caps are set on our src pad. So we can't assume the not
having negotiated caps on our src pad means _get_caps still has to be
called.

Instead simply always suggest the new caps on buffer_alloc.
plugins/elements/gstcapsfilter.c