From b8d7a44a413af92622084616096c4bc0932d9040 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 1 Oct 2004 16:49:01 +0000 Subject: [PATCH] gdp: Fix threadsafety of the crc checking function. Original commit message from CVS: * libs/gst/dataprotocol/dataprotocol.c: (gst_dp_crc): Fix threadsafety of the crc checking function. --- gst/gdp/dataprotocol.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/gdp/dataprotocol.c b/gst/gdp/dataprotocol.c index 8df6fc080d..27512987ea 100644 --- a/gst/gdp/dataprotocol.c +++ b/gst/gdp/dataprotocol.c @@ -50,7 +50,8 @@ static guint16 gst_dp_crc (const guint8 * buffer, register guint length) { static gboolean initialized = FALSE; - static guint16 crc_register, crc_table[256]; + static guint16 crc_table[256]; + guint16 crc_register; unsigned long i, j, k; if (!initialized) { -- 2.34.1