buffer: fix negative offsets some more
authorWim Taymans <wim.taymans@collabora.co.uk>
Mon, 11 Jul 2011 16:00:52 +0000 (18:00 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 11 Jul 2011 16:00:52 +0000 (18:00 +0200)
commit8461249f2223a0c0d36690d8da8ce3cde974da56
tree02053c5c43e4b77570458f4f26357ea50bf1e25a
parent0849cae4a85ebaaa5091cf5723223fc362837d8d
buffer: fix negative offsets some more

Allow for negative offsets when doing memory copy and share.
Add fast path in the _get_sizes() function.
Fix resize for negative offset and expanding the buffer.
Add some unit tests.
gst/gstbuffer.c
gst/gstmemory.c
gst/gstmemory.h
tests/check/gst/gstbuffer.c