mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
baseparse: remove the memory from the tmpbuf
We use a tmpbuf to hold a temporary pointer to the adapter memory. We need to remove that memory when we no longer need it.
This commit is contained in:
parent
221836f452
commit
216a877825
1 changed files with 1 additions and 0 deletions
|
@ -2293,6 +2293,7 @@ gst_base_parse_chain (GstPad * pad, GstBuffer * buffer)
|
|||
res = bclass->check_valid_frame (parse, frame, &fsize, &skip);
|
||||
gst_adapter_unmap (parse->priv->adapter, 0);
|
||||
gst_buffer_replace (&frame->buffer, NULL);
|
||||
gst_buffer_remove_memory_range (tmpbuf, 0, -1);
|
||||
if (res) {
|
||||
if (gst_adapter_available (parse->priv->adapter) < fsize) {
|
||||
GST_DEBUG_OBJECT (parse, "found valid frame but not enough data"
|
||||
|
|
Loading…
Reference in a new issue