mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 19:50:40 +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
|
||||
(self), frame)) != GST_FLOW_OK) {
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue