audiodec/enc: clear reconfigure flag if negotiate succeeds
authorJulien Isorce <julien.isorce@collabora.co.uk>
Thu, 5 Dec 2013 14:39:57 +0000 (14:39 +0000)
committerJulien Isorce <julien.isorce@collabora.co.uk>
Thu, 5 Dec 2013 15:19:16 +0000 (15:19 +0000)
commite68317f070caf533c582c9fe2795e21b75f4747f
tree5b2a363851bbdbbe1558cebc6869982250aaa931
parent79ef75888c88c5883b8963c9e85d4260fd57f72d
audiodec/enc: clear reconfigure flag if negotiate succeeds

So that it avoids to send an allocation query twice.
One from an early call to gst_audio_encoder_negotiate from a
subclass, then one from gst_audio_encoder_allocate_output_buffer.
Which means that previously gst_audio_encoder_negotiate was not
clearing the GST_PAD_FLAG_NEED_RECONFIGURE even on success.

Fixes bug https://bugzilla.gnome.org/show_bug.cgi?id=719684
gst-libs/gst/audio/gstaudiodecoder.c
gst-libs/gst/audio/gstaudioencoder.c