summaryrefslogtreecommitdiff
path: root/libs/gst/base/gstadapter.h
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2006-05-04 14:19:53 +0000
committerWim Taymans <wim.taymans@gmail.com>2006-05-04 14:19:53 +0000
commit4ceea3e44e4debcc2c5c15e89645222c0c0bd4f0 (patch)
treeec327302c33579b69be03655ac67f2eb10c4df78 /libs/gst/base/gstadapter.h
parentcd16e10793fcfe070a79bc4aa3cbbb9c89c478b2 (diff)
docs/libs/gstreamer-libs-sections.txt: API: addition: gst_adapter_take_buffer()
Original commit message from CVS: * docs/libs/gstreamer-libs-sections.txt: API: addition: gst_adapter_take_buffer() * libs/gst/base/gstadapter.c: (gst_adapter_push), (gst_adapter_peek), (gst_adapter_take), (gst_adapter_take_buffer), (gst_adapter_available_fast): * libs/gst/base/gstadapter.h: Prepare for optimizing the hell out of this hugely inefficient piece of code. Added gst_adapter_take_buffer() so we can at least start thinking about subbuffering and merging. Added some comments. * tests/check/Makefile.am: * tests/check/libs/adapter.c: (GST_START_TEST), (gst_adapter_suite), (main): Added GstAdapter check.
Diffstat (limited to 'libs/gst/base/gstadapter.h')
-rw-r--r--libs/gst/base/gstadapter.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/gst/base/gstadapter.h b/libs/gst/base/gstadapter.h
index 32b46a4a7..36492fbf4 100644
--- a/libs/gst/base/gstadapter.h
+++ b/libs/gst/base/gstadapter.h
@@ -76,7 +76,8 @@ void gst_adapter_clear (GstAdapter *adapter);
void gst_adapter_push (GstAdapter *adapter, GstBuffer* buf);
const guint8 * gst_adapter_peek (GstAdapter *adapter, guint size);
void gst_adapter_flush (GstAdapter *adapter, guint flush);
-guint8* gst_adapter_take (GstAdapter * adapter, guint nbytes);
+guint8* gst_adapter_take (GstAdapter *adapter, guint nbytes);
+GstBuffer* gst_adapter_take_buffer (GstAdapter *adapter, guint nbytes);
guint gst_adapter_available (GstAdapter *adapter);
guint gst_adapter_available_fast (GstAdapter *adapter);
GType gst_adapter_get_type (void);