gstreamer/subprojects/gst-devtools
Xavier Claessens d809406dfc gstbuffer: Add parent meta when a copy shares memory with parent
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/5696>
2023-11-20 12:31:04 -05:00
..
debug-viewer Remove the uninstalled term 2022-03-01 11:33:10 +00:00
docs docs: explicitly declare gir build dependencies 2023-01-06 22:50:57 +00:00
scripts meson: Generate ChangeLog files for release tarballs on dist 2022-12-04 18:16:25 +00:00
tracer Move files from gst-devtools into the "subprojects/gst-devtools/" subdir 2021-09-24 16:15:38 -03:00
validate gstbuffer: Add parent meta when a copy shares memory with parent 2023-11-20 12:31:04 -05:00
.gitignore Move files from gst-devtools into the "subprojects/gst-devtools/" subdir 2021-09-24 16:15:38 -03:00
gst-devtools.doap Release 1.22.7 2023-11-13 11:04:22 +00:00
meson.build Back to development 2023-11-13 14:57:09 +00:00
meson_options.txt tools: Add support for building gstreamer tools against gst-full 2022-03-30 17:43:17 +00:00
NEWS Release 1.22.7 2023-11-13 11:04:22 +00:00
RELEASE Release 1.22.7 2023-11-13 11:04:22 +00:00