amcaudiodec: Release buffer back to Android if allocating output fails
This commit is contained in:
parent
a1d9f6c796
commit
2476b926b1
@ -784,6 +784,7 @@ failed_allocate:
|
|||||||
{
|
{
|
||||||
GST_ELEMENT_ERROR (self, LIBRARY, SETTINGS, (NULL),
|
GST_ELEMENT_ERROR (self, LIBRARY, SETTINGS, (NULL),
|
||||||
("Failed to allocate output buffer"));
|
("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_push_event (GST_AUDIO_DECODER_SRC_PAD (self), gst_event_new_eos ());
|
||||||
gst_pad_pause_task (GST_AUDIO_DECODER_SRC_PAD (self));
|
gst_pad_pause_task (GST_AUDIO_DECODER_SRC_PAD (self));
|
||||||
self->downstream_flow_ret = GST_FLOW_ERROR;
|
self->downstream_flow_ret = GST_FLOW_ERROR;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user