audio-convert: simplify the chain free process
authorPetr Kulhavy <brain@jikos.cz>
Fri, 21 Oct 2016 12:30:31 +0000 (14:30 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 28 Nov 2016 15:24:13 +0000 (17:24 +0200)
commit640c54d8f8cf1a035044fa4f034b866883925a4d
tree1d6744f0d86985f5e14cbd924420749b969d8037
parentb2b8e775664fa35130e4617fd7cceb846939550b
audio-convert: simplify the chain free process

It is not needed to store a pointer to every single chain element to free it.
Instead walk the channel list backwards and free the chain elements one by one.

Rename GstAudioConverter->chain_pack to chain_end.

https://bugzilla.gnome.org/show_bug.cgi?id=773073
gst-libs/gst/audio/audio-converter.c