Commit cfcd3502 authored by Thomas Vander Stichele's avatar Thomas Vander Stichele
Browse files

fix for #150242

Original commit message from CVS:
fix for #150242
parent 756dc098
2004-08-16 Thomas Vander Stichele <thomas at apestaart dot org>
patch by: Wim Taymans (wim@fluendo.com)
* gst/gstbuffer.c:
* gst/gstindex.h:
* libs/gst/dataprotocol/dataprotocol.c:
copy KEY_UNIT and DELTA_UNIT flags correctly. Fixes #150242
2004-08-13 Thomas Vander Stichele <thomas at apestaart dot org>
* Makefile.am:
......
......@@ -149,7 +149,8 @@ gst_buffer_default_copy (GstBuffer * buffer)
/* copy relevant flags */
flags = GST_DATA_FLAG_SHIFT (GST_BUFFER_KEY_UNIT) |
GST_DATA_FLAG_SHIFT (GST_BUFFER_IN_CAPS);
GST_DATA_FLAG_SHIFT (GST_BUFFER_IN_CAPS) |
GST_DATA_FLAG_SHIFT (GST_BUFFER_DELTA_UNIT);
flags = GST_BUFFER_FLAGS (buffer) & flags;
_GST_DATA_INIT (GST_DATA (copy),
......
......@@ -78,6 +78,7 @@ struct _GstIndexAssociation {
typedef enum {
GST_ASSOCIATION_FLAG_NONE = 0,
GST_ASSOCIATION_FLAG_KEY_UNIT = (1 << 0),
GST_ASSOCIATION_FLAG_DELTA_UNIT = (1 << 1),
/* new flags should start here */
GST_ASSOCIATION_FLAG_LAST = (1 << 8)
......
......@@ -186,9 +186,10 @@ gst_dp_header_from_buffer (const GstBuffer * buffer, GstDPHeaderFlag flags,
GST_WRITE_UINT64_BE (h + 32, GST_BUFFER_OFFSET_END (buffer));
/* data flags */
/* we only copy KEY_UNIT and IN_CAPS flags */
/* we only copy KEY_UNIT,DELTA_UNIT and IN_CAPS flags */
flags_mask = GST_DATA_FLAG_SHIFT (GST_BUFFER_KEY_UNIT) |
GST_DATA_FLAG_SHIFT (GST_BUFFER_IN_CAPS);
GST_DATA_FLAG_SHIFT (GST_BUFFER_IN_CAPS) |
GST_DATA_FLAG_SHIFT (GST_BUFFER_DELTA_UNIT);
GST_WRITE_UINT16_BE (h + 40, GST_BUFFER_FLAGS (buffer) & flags_mask);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment