buffer: add api to get the current memory offset
authorWim Taymans <wim.taymans@collabora.co.uk>
Mon, 11 Jul 2011 14:17:57 +0000 (16:17 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 11 Jul 2011 14:24:16 +0000 (16:24 +0200)
commitabf6293639151f4d25914cbc203efa372e40c2f6
tree7d02b377d32be0cb1f1947be14cff88e82850184
parent21e0d113cff145fceb4dfaf423b2af97a8633d3f
buffer: add api to get the current memory offset

Also return the offset in a GstMemory block with the get_sizes() method. This
allows us to figure out how much prefix there is unused.
Change the resize function so that a negative offset can be given. This would
make it possible to resize the buffer so that the prefix becomes available.
Add gst_buffer_get_sizes() to return the offset and maxsize as well as the size.
Also change the buffer resize method so that we can specify a negative offset
to remove prefix bytes.
gst/gstbuffer.c
gst/gstbuffer.h
gst/gstmemory.c
gst/gstmemory.h
win32/common/libgstreamer.def