libs/gst/dataprotocol/dataprotocol.c: make sure we zero the whole ABI-compatible...
authorThomas Vander Stichele <thomas@apestaart.org>
Thu, 1 Jun 2006 11:13:44 +0000 (11:13 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Thu, 1 Jun 2006 11:13:44 +0000 (11:13 +0000)
Original commit message from CVS:

* libs/gst/dataprotocol/dataprotocol.c:
(gst_dp_header_from_buffer):
make sure we zero the whole ABI-compatible area

ChangeLog
libs/gst/dataprotocol/dataprotocol.c

index 9a6a96f..d9f2905 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-06-01  Thomas Vander Stichele  <thomas at apestaart dot org>
+
+       * libs/gst/dataprotocol/dataprotocol.c:
+       (gst_dp_header_from_buffer):
+         make sure we zero the whole ABI-compatible area
+
 2006-06-01  Wim Taymans  <wim@fluendo.com>
 
        Patch by: Alessandro Decina <alessandro at nnva dot org>
index a6d5817..6d06246 100644 (file)
@@ -196,8 +196,9 @@ gst_dp_header_from_buffer (const GstBuffer * buffer, GstDPHeaderFlag flags,
   GST_WRITE_UINT16_BE (h + 42, GST_BUFFER_FLAGS (buffer) & flags_mask);
 
   /* ABI padding */
-  GST_WRITE_UINT32_BE (h + 44, (guint64) 0);
-  GST_WRITE_UINT64_BE (h + 48, (guint64) 0);
+  GST_WRITE_UINT64_BE (h + 44, (guint64) 0);
+  GST_WRITE_UINT32_BE (h + 52, (guint32) 0);
+  GST_WRITE_UINT16_BE (h + 56, (guint16) 0);
 
   /* CRC */
   crc = 0;