gdp: make sure we zero the whole ABI-compatible area
authorThomas Vander Stichele <thomas@apestaart.org>
Thu, 1 Jun 2006 11:13:44 +0000 (11:13 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Sun, 25 Dec 2011 22:49:58 +0000 (22:49 +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

gst/gdp/dataprotocol.c

index 4620064..ef35a13 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;