aacparse: set channels and rate on output caps, and keep codec_data
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 1 Jun 2009 12:05:35 +0000 (13:05 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 1 Jun 2009 23:56:52 +0000 (00:56 +0100)
commitf5a03ec2a6000351d59979daa64abad6719cdfb7
treeb8bbd02c7828d69c92a29bd1a478c1451888a0f2
parent7f82fe3b46e74a9647a693fdf72f954f648ce87c
aacparse: set channels and rate on output caps, and keep codec_data

Create output caps from input caps, so we maintain any fields we
might get on the input caps, such as codec_data or rate and channels.
Set channels and rate on the output caps if we don't have input caps
or they don't contain such fields. We do this partly because we can,
but also because some muxers need this information. Tagreadbin will
also be happy about this.
gst/aacparse/gstaacparse.c
tests/check/elements/aacparse.c