amcaudiodec: Release buffer back to Android if allocating output fails

This commit is contained in:
Sebastian Dröge 2014-02-14 12:28:50 +01:00
parent a1d9f6c796
commit 2476b926b1

View file

@ -784,6 +784,7 @@ failed_allocate:
{
GST_ELEMENT_ERROR (self, LIBRARY, SETTINGS, (NULL),
("Failed to allocate output buffer"));
gst_amc_codec_release_output_buffer (self->codec, idx);
gst_pad_push_event (GST_AUDIO_DECODER_SRC_PAD (self), gst_event_new_eos ());
gst_pad_pause_task (GST_AUDIO_DECODER_SRC_PAD (self));
self->downstream_flow_ret = GST_FLOW_ERROR;