mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 15:27:07 +00:00
amcaudiodec: Release buffer back to Android if allocating output fails
This commit is contained in:
parent
a1d9f6c796
commit
2476b926b1
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue