audioencoder: Call reset() before the start() vfunc to guarantee a clean state
authorSebastian Dröge <sebastian@centricular.com>
Mon, 22 Dec 2014 10:36:58 +0000 (11:36 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 22 Dec 2014 10:36:58 +0000 (11:36 +0100)
commitaae6400962a695b5541a6f33e8e2de0cc2264726
treec606286c3dd23fb993e46d8abb6a472e6d7f8894
parent098b42f36b9ab0a41be5d35f076dd2a335a3b2c1
audioencoder: Call reset() before the start() vfunc to guarantee a clean state

The same was done already in the decoder, and we cleaned some state just above
manually that would also be taken care of by reset().

This makes sure that the element is in the same state before start() is called
the very first time and every future call after the element was used already.
gst-libs/gst/audio/gstaudioencoder.c