buffer: unify buffer merge methods
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 28 Mar 2012 10:44:44 +0000 (12:44 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 28 Mar 2012 10:51:58 +0000 (12:51 +0200)
commitbb876588ac998061cef3b3343a8c00f01d119063
tree3e9b2253471084f6c9cad3fc5b3444fd5bdebdef
parentfd675fa38529aa5a43a4176674d8d3c01b82d8b3
buffer: unify buffer merge methods

Add gst_buffer_append() which appends the memory blocks from one buffer to
another. Remove the old inefficient _merge() and _join() methods which forced a
premature memcpy in most cases.
Remove the _is_span() and _span() methods they are not needed anymore now that
we can _append(). Merging and spanning will be delayed until mapping or maybe
not at all when the element can deal with the different memory blocks.
docs/gst/gstreamer-sections.txt
docs/random/porting-to-0.11.txt
gst/gstbuffer.c
gst/gstbuffer.h
gst/gstutils.c
gst/gstutils.h
libs/gst/base/gstadapter.c
tests/check/gst/gstbuffer.c
win32/common/libgstreamer.def