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)
committerAlessandro Decina <alessandro.decina@collabora.co.uk>
Wed, 25 Jan 2012 15:50:36 +0000 (16:50 +0100)
commit4f64d80c6e0d3860351496a9a85afc0ec63dbbd6
tree4326aef086d667423bc1887461c2347c71c11ff0
parent9d47785d668137bdf7d405936eeda561cf016901
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