basetransform: Reconfigure before propose_allocation
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 21 Aug 2015 21:28:48 +0000 (14:28 -0700)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 21 Aug 2015 22:14:34 +0000 (15:14 -0700)
commit2534e39e553859ff8bb71c5bd0e39bca48688698
treec716157b3d97bba7958a03415aff953c916cb25b
parent900110c6dcb1b8f0c2203e1ee586b7c19dbd3eda
basetransform: Reconfigure before propose_allocation

There exist cases where a reconfigure event was propagated from
downstream, but caps didn't change. In this case, we would
reconfigure only when the next buffer arrives. The problem is that
due to the allocation query being cached, the return query parameters
endup outdated.

In this patch we refactor the reconfigurating code into a function, and
along with reconfiguring when a new buffer comes in, we also reconfigure
when a query allocation arrives.

https://bugzilla.gnome.org/show_bug.cgi?id=753850
libs/gst/base/gstbasetransform.c