mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-06 14:32:31 +00:00
omxaudiodec: Unmap input buffers after usage
https://bugzilla.gnome.org/show_bug.cgi?id=736314
This commit is contained in:
parent
bfeab29a39
commit
eba9e3f29d
1 changed files with 8 additions and 0 deletions
|
@ -1180,6 +1180,7 @@ gst_omx_audio_dec_handle_frame (GstAudioDecoder * decoder, GstBuffer * inbuf)
|
||||||
if (err != OMX_ErrorNone)
|
if (err != OMX_ErrorNone)
|
||||||
goto release_error;
|
goto release_error;
|
||||||
}
|
}
|
||||||
|
gst_buffer_unmap (inbuf, &minfo);
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (self, "Passed frame to component");
|
GST_DEBUG_OBJECT (self, "Passed frame to component");
|
||||||
if (inbuf)
|
if (inbuf)
|
||||||
|
@ -1189,6 +1190,7 @@ gst_omx_audio_dec_handle_frame (GstAudioDecoder * decoder, GstBuffer * inbuf)
|
||||||
|
|
||||||
full_buffer:
|
full_buffer:
|
||||||
{
|
{
|
||||||
|
gst_buffer_unmap (inbuf, &minfo);
|
||||||
if (inbuf)
|
if (inbuf)
|
||||||
gst_buffer_unref (inbuf);
|
gst_buffer_unref (inbuf);
|
||||||
|
|
||||||
|
@ -1200,6 +1202,7 @@ full_buffer:
|
||||||
|
|
||||||
flow_error:
|
flow_error:
|
||||||
{
|
{
|
||||||
|
gst_buffer_unmap (inbuf, &minfo);
|
||||||
if (inbuf)
|
if (inbuf)
|
||||||
gst_buffer_unref (inbuf);
|
gst_buffer_unref (inbuf);
|
||||||
|
|
||||||
|
@ -1208,6 +1211,7 @@ flow_error:
|
||||||
|
|
||||||
too_large_codec_data:
|
too_large_codec_data:
|
||||||
{
|
{
|
||||||
|
gst_buffer_unmap (inbuf, &minfo);
|
||||||
if (inbuf)
|
if (inbuf)
|
||||||
gst_buffer_unref (inbuf);
|
gst_buffer_unref (inbuf);
|
||||||
|
|
||||||
|
@ -1220,6 +1224,7 @@ too_large_codec_data:
|
||||||
|
|
||||||
component_error:
|
component_error:
|
||||||
{
|
{
|
||||||
|
gst_buffer_unmap (inbuf, &minfo);
|
||||||
if (inbuf)
|
if (inbuf)
|
||||||
gst_buffer_unref (inbuf);
|
gst_buffer_unref (inbuf);
|
||||||
|
|
||||||
|
@ -1232,6 +1237,7 @@ component_error:
|
||||||
|
|
||||||
flushing:
|
flushing:
|
||||||
{
|
{
|
||||||
|
gst_buffer_unmap (inbuf, &minfo);
|
||||||
if (inbuf)
|
if (inbuf)
|
||||||
gst_buffer_unref (inbuf);
|
gst_buffer_unref (inbuf);
|
||||||
|
|
||||||
|
@ -1240,6 +1246,7 @@ flushing:
|
||||||
}
|
}
|
||||||
reconfigure_error:
|
reconfigure_error:
|
||||||
{
|
{
|
||||||
|
gst_buffer_unmap (inbuf, &minfo);
|
||||||
if (inbuf)
|
if (inbuf)
|
||||||
gst_buffer_unref (inbuf);
|
gst_buffer_unref (inbuf);
|
||||||
|
|
||||||
|
@ -1249,6 +1256,7 @@ reconfigure_error:
|
||||||
}
|
}
|
||||||
release_error:
|
release_error:
|
||||||
{
|
{
|
||||||
|
gst_buffer_unmap (inbuf, &minfo);
|
||||||
if (inbuf)
|
if (inbuf)
|
||||||
gst_buffer_unref (inbuf);
|
gst_buffer_unref (inbuf);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue