mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 02:30:35 +00:00
gst/gstbuffer.*: Added Comment to a flag. copy relevant flags in _buffer_copy.
Original commit message from CVS: * gst/gstbuffer.c: (gst_buffer_default_copy): * gst/gstbuffer.h: Added Comment to a flag. copy relevant flags in _buffer_copy.
This commit is contained in:
parent
5ea6cc9ed7
commit
4dd1a6b173
3 changed files with 14 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
|||
2004-05-20 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* gst/gstbuffer.c: (gst_buffer_default_copy):
|
||||
* gst/gstbuffer.h:
|
||||
Added Comment to a flag.
|
||||
copy relevant flags in _buffer_copy.
|
||||
|
||||
2004-05-20 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
reviewed by: Wim Taymans <wim at fluendo dot com>
|
||||
|
|
|
@ -140,15 +140,20 @@ GstBuffer *
|
|||
gst_buffer_default_copy (GstBuffer * buffer)
|
||||
{
|
||||
GstBuffer *copy;
|
||||
guint16 flags;
|
||||
|
||||
g_return_val_if_fail (buffer != NULL, NULL);
|
||||
|
||||
/* create a fresh new buffer */
|
||||
copy = gst_buffer_alloc_chunk ();
|
||||
|
||||
/* copy relevant flags */
|
||||
flags = GST_DATA_FLAG_SHIFT (GST_BUFFER_KEY_UNIT) |
|
||||
GST_DATA_FLAG_SHIFT (GST_BUFFER_IN_CAPS);
|
||||
|
||||
_GST_DATA_INIT (GST_DATA (copy),
|
||||
_gst_buffer_type,
|
||||
0,
|
||||
flags,
|
||||
(GstDataFreeFunction) gst_buffer_default_free,
|
||||
(GstDataCopyFunction) gst_buffer_default_copy);
|
||||
|
||||
|
|
|
@ -78,7 +78,7 @@ typedef enum {
|
|||
GST_BUFFER_SUBBUFFER = GST_DATA_FLAG_LAST,
|
||||
GST_BUFFER_ORIGINAL,
|
||||
GST_BUFFER_DONTFREE,
|
||||
GST_BUFFER_KEY_UNIT,
|
||||
GST_BUFFER_KEY_UNIT, /* sync point in the stream */
|
||||
GST_BUFFER_DONTKEEP,
|
||||
GST_BUFFER_IN_CAPS,
|
||||
GST_BUFFER_FLAG_LAST = GST_DATA_FLAG_LAST + 8
|
||||
|
|
Loading…
Reference in a new issue