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>
This directory contains regression tests, functionality tests, examples, benchmarks, ... benchmarks/ benchmarks to profile pieces of GStreamer check/ unit tests using the check library, non-interactive examples/ small examples demonstrating the use of various features misc/ prototypes, random bits, ...