flacenc: fix get_caps function some more so that all structures have channel info
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 22 Feb 2012 17:39:16 +0000 (17:39 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 22 Feb 2012 17:39:16 +0000 (17:39 +0000)
commit3e9f191262f6e53c231de751c0d3f26faf689987
tree9d85b19afc400120c017bf728fee6ea0e040b891
parentf0b076212fd56432e9325758e93b8e726c9423ad
flacenc: fix get_caps function some more so that all structures have channel info

Set channels and channel-layout on the right structure; that is, the
structure we are going to append to the caps we are building, and not
the structure we are using as a template for all the structures. Fixes
first structure of the returned caps not having any channel info set
on it.
ext/flac/gstflacenc.c