gstbuffer: add gst_buffer_copy_deep
authorThiago Santos <thiagoss@osg.samsung.com>
Fri, 13 Mar 2015 18:35:01 +0000 (18:35 +0000)
committerThiago Santos <thiagoss@osg.samsung.com>
Fri, 13 Mar 2015 18:37:04 +0000 (18:37 +0000)
commit96eaeadc0f3cbad3cf35d26f542b8359d27e316d
tree1dfe6f7db16eca01c3523ed56ebfa245891cd3e2
parentd8f572647fe1ee56d4e4a0a215626339a40890fa
gstbuffer: add gst_buffer_copy_deep

A variant of gst_buffer_copy that forces the underlying memory
to be copied.

This is added to avoid adding an extra reference to a GstMemory
that might belong to a bufferpool that is trying to be drained.
The use case is when the buffer copying is done to release the
old buffer and all its resources.

https://bugzilla.gnome.org/show_bug.cgi?id=745287
gst/gstbuffer.c
gst/gstbuffer.h
tests/check/gst/gstbuffer.c
win32/common/libgstreamer.def