mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
baseparse: ensure buffer metadata is writable
This commit is contained in:
parent
4b040d9a37
commit
ea0dd8151b
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? */
|
||||
outbuf = gst_adapter_take_buffer (parse->adapter, fsize);
|
||||
outbuf = gst_buffer_make_metadata_writable (outbuf);
|
||||
|
||||
/* Subclass may want to know the data offset */
|
||||
GST_BUFFER_OFFSET (outbuf) = parse->priv->offset;
|
||||
|
|
Loading…
Reference in a new issue