mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 21:18:52 +00:00
amcvideodec: Release buffer to Android if allocating output failed
This commit is contained in:
parent
2476b926b1
commit
faf48d26bf
1 changed files with 3 additions and 0 deletions
|
@ -1186,6 +1186,9 @@ retry:
|
||||||
if ((flow_ret = gst_video_decoder_allocate_output_frame (GST_VIDEO_DECODER
|
if ((flow_ret = gst_video_decoder_allocate_output_frame (GST_VIDEO_DECODER
|
||||||
(self), frame)) != GST_FLOW_OK) {
|
(self), frame)) != GST_FLOW_OK) {
|
||||||
GST_ERROR_OBJECT (self, "Failed to allocate buffer");
|
GST_ERROR_OBJECT (self, "Failed to allocate buffer");
|
||||||
|
if (!gst_amc_codec_release_output_buffer (self->codec, idx))
|
||||||
|
GST_ERROR_OBJECT (self, "Failed to release output buffer index %d",
|
||||||
|
idx);
|
||||||
goto flow_error;
|
goto flow_error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue