libs/gst/dataprotocol/dataprotocol.c: When calculating GDP body CRC, use the correct pointer.

Original commit message from CVS:
* libs/gst/dataprotocol/dataprotocol.c:
(gst_dp_packet_from_event_1_0):
When calculating GDP body CRC, use the correct pointer.
Fixes part of #522401.
This commit is contained in:
Michael Smith 2008-03-27 15:23:55 +00:00
parent d82688054e
commit ec52cbe242
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2008-03-27 Michael Smith <msmith@fluendo.com>
* libs/gst/dataprotocol/dataprotocol.c:
(gst_dp_packet_from_event_1_0):
When calculating GDP body CRC, use the correct pointer.
Fixes part of #522401.
2008-03-24 Wim Taymans <wim.taymans@collabora.co.uk> 2008-03-24 Wim Taymans <wim.taymans@collabora.co.uk>
Patch by: Mark Nauwelaerts <manauw at skynet be> Patch by: Mark Nauwelaerts <manauw at skynet be>

View file

@ -558,7 +558,7 @@ gst_dp_packet_from_event_1_0 (const GstEvent * event, GstDPHeaderFlag flags,
/* timestamp */ /* timestamp */
GST_WRITE_UINT64_BE (h + 10, GST_EVENT_TIMESTAMP (event)); GST_WRITE_UINT64_BE (h + 10, GST_EVENT_TIMESTAMP (event));
GST_DP_SET_CRC (h, flags, *payload, pl_length); GST_DP_SET_CRC (h, flags, string, pl_length);
GST_LOG ("created header from event:"); GST_LOG ("created header from event:");
gst_dp_dump_byte_array (h, GST_DP_HEADER_LENGTH); gst_dp_dump_byte_array (h, GST_DP_HEADER_LENGTH);