diff options
author | junji <jun.ji@lge.com> | 2014-09-30 10:50:07 +0900 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-09-30 10:44:38 +0300 |
commit | eba9e3f29d01f8eab2bf32e12c944ad6c5ea1fea (patch) | |
tree | 4e0da6e347b0f5546d0c4a1a332bb32b3780ffd6 /omx | |
parent | bfeab29a398455d8c89af6d1bbd80817c5e3ad0e (diff) | |
download | gst-omx-eba9e3f29d01f8eab2bf32e12c944ad6c5ea1fea.tar.gz |
omxaudiodec: Unmap input buffers after usage
https://bugzilla.gnome.org/show_bug.cgi?id=736314
Diffstat (limited to 'omx')
-rw-r--r-- | omx/gstomxaudiodec.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/omx/gstomxaudiodec.c b/omx/gstomxaudiodec.c index e04fc25..cbf528f 100644 --- a/omx/gstomxaudiodec.c +++ b/omx/gstomxaudiodec.c @@ -1180,6 +1180,7 @@ gst_omx_audio_dec_handle_frame (GstAudioDecoder * decoder, GstBuffer * inbuf) if (err != OMX_ErrorNone) goto release_error; } + gst_buffer_unmap (inbuf, &minfo); GST_DEBUG_OBJECT (self, "Passed frame to component"); if (inbuf) @@ -1189,6 +1190,7 @@ gst_omx_audio_dec_handle_frame (GstAudioDecoder * decoder, GstBuffer * inbuf) full_buffer: { + gst_buffer_unmap (inbuf, &minfo); if (inbuf) gst_buffer_unref (inbuf); @@ -1200,6 +1202,7 @@ full_buffer: flow_error: { + gst_buffer_unmap (inbuf, &minfo); if (inbuf) gst_buffer_unref (inbuf); @@ -1208,6 +1211,7 @@ flow_error: too_large_codec_data: { + gst_buffer_unmap (inbuf, &minfo); if (inbuf) gst_buffer_unref (inbuf); @@ -1220,6 +1224,7 @@ too_large_codec_data: component_error: { + gst_buffer_unmap (inbuf, &minfo); if (inbuf) gst_buffer_unref (inbuf); @@ -1232,6 +1237,7 @@ component_error: flushing: { + gst_buffer_unmap (inbuf, &minfo); if (inbuf) gst_buffer_unref (inbuf); @@ -1240,6 +1246,7 @@ flushing: } reconfigure_error: { + gst_buffer_unmap (inbuf, &minfo); if (inbuf) gst_buffer_unref (inbuf); @@ -1249,6 +1256,7 @@ reconfigure_error: } release_error: { + gst_buffer_unmap (inbuf, &minfo); if (inbuf) gst_buffer_unref (inbuf); |