From ec52cbe242f0da25d7c1e57eec00a43d8a1c285c Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Thu, 27 Mar 2008 15:23:55 +0000 Subject: [PATCH] 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. --- ChangeLog | 7 +++++++ libs/gst/dataprotocol/dataprotocol.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index dce9e5e7a1..903376551e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-03-27 Michael Smith + + * 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 Patch by: Mark Nauwelaerts diff --git a/libs/gst/dataprotocol/dataprotocol.c b/libs/gst/dataprotocol/dataprotocol.c index 8bdb9bcf8f..80c02c4740 100644 --- a/libs/gst/dataprotocol/dataprotocol.c +++ b/libs/gst/dataprotocol/dataprotocol.c @@ -558,7 +558,7 @@ gst_dp_packet_from_event_1_0 (const GstEvent * event, GstDPHeaderFlag flags, /* timestamp */ 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_dp_dump_byte_array (h, GST_DP_HEADER_LENGTH);