mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 11:10:37 +00:00
096bd3c4a2
When copying a buffer, for example with gst_buffer_make_writable(), the new buffer might reference the same GstMemory as the src buffer, making those memories not writable. If the src buffer gets disposed first it should return to its buffer pool, but since some of its memories are not writable it gets discarded and new buffer/memory gets allocated. Solves this by making the new buffer keep a reference to the src buffer, that ensures that by the time the src buffer gets disposed no other buffer are referencing its memories and it can thus return safely to its pool. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4176> |
||
---|---|---|
.. | ||
debug-viewer | ||
docs | ||
scripts | ||
tracer | ||
validate | ||
.gitignore | ||
gst-devtools.doap | ||
meson.build | ||
meson_options.txt | ||
NEWS | ||
RELEASE |