gst/gstbuffer.h: Added convenience macros for setting buffers in GValue.

Original commit message from CVS:
* gst/gstbuffer.h:
Added convenience macros for setting buffers in GValue.
This commit is contained in:
Wim Taymans 2005-06-22 09:55:16 +00:00
parent 02b3212e25
commit 202c113397
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2005-06-22 Wim Taymans <wim@fluendo.com>
* gst/gstbuffer.h:
Added convenience macros for setting buffers in GValue.
2005-06-21 Thomas Vander Stichele <thomas at apestaart dot org>
* check/gst/.cvsignore:

View file

@ -157,6 +157,10 @@ GstBuffer* gst_buffer_create_sub (GstBuffer *parent, guint offset, guint size);
gboolean gst_buffer_is_span_fast (GstBuffer *buf1, GstBuffer *buf2);
GstBuffer* gst_buffer_span (GstBuffer *buf1, guint32 offset, GstBuffer *buf2, guint32 len);
#define gst_value_set_buffer(v,b) gst_value_set_mini_object(v, GST_MINI_OBJECT(b))
#define gst_value_take_buffer(v,b) gst_value_take_mini_object(v, GST_MINI_OBJECT(b))
#define gst_value_get_buffer(v) GST_BUFFER (gst_value_get_mini_object(v))
/* --- protected --- */
void _gst_buffer_initialize (void);