baseparse: Return template caps instead of other side's peer caps if get_sink_caps...
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 23 Nov 2011 12:42:56 +0000 (13:42 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 23 Nov 2011 12:42:56 +0000 (13:42 +0100)
commitaa9ba2dd4e7167f00c48fee1fddbe5b02426ed5f
tree00fbf812e7bd9847b0c25576f9e1111fa4e533a7
parentc0d5857cd997ee8d3e6674bf92f7ad76c2c2de8e
baseparse: Return template caps instead of other side's peer caps if get_sink_caps vfunc is not implemented

Using gst_pad_proxy_get_caps() breaks backwards compatibility with old
parsers because it will propagate the other side's fields like "parsed"
and "framed" and also breaks parser/converters.

Fixes bug #664221.
libs/gst/base/gstbaseparse.c