pad: improve the getcaps function
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 26 Jul 2011 16:48:20 +0000 (18:48 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 26 Jul 2011 16:48:20 +0000 (18:48 +0200)
commit5e330fa456306098c5d24d99740c9e27e8dc4936
tree107dbc950b92c9f5a675b462e715d61c38ae867a
parentcea4b4c7d5e9ab78ea00f1a4de87320b4ba2ada0
pad: improve the getcaps function

Refactor calling the GETCAPS function and checks.
Move the filter code in one place.
When using fixed pad caps, get the currently configured caps and then fallback
to the GETCAPS function. We used to simply ignore the GETCAPS function, which
resulted in transform elements returning the template caps instead of doing the
caps transform.
gst/gstpad.c