mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
baseparse: ensure buffer metadata is writable
This commit is contained in:
parent
1bc8301c79
commit
a9de98830a
1 changed files with 1 additions and 0 deletions
|
@ -1171,6 +1171,7 @@ gst_base_parse_chain (GstPad * pad, GstBuffer * buffer)
|
||||||
|
|
||||||
/* FIXME: Would it be more efficient to make a subbuffer instead? */
|
/* FIXME: Would it be more efficient to make a subbuffer instead? */
|
||||||
outbuf = gst_adapter_take_buffer (parse->adapter, fsize);
|
outbuf = gst_adapter_take_buffer (parse->adapter, fsize);
|
||||||
|
outbuf = gst_buffer_make_metadata_writable (outbuf);
|
||||||
|
|
||||||
/* Subclass may want to know the data offset */
|
/* Subclass may want to know the data offset */
|
||||||
GST_BUFFER_OFFSET (outbuf) = parse->priv->offset;
|
GST_BUFFER_OFFSET (outbuf) = parse->priv->offset;
|
||||||
|
|
Loading…
Reference in a new issue