libs/gst/dataprotocol/dataprotocol.c: Fix threadsafety of the crc checking function.
authorWim Taymans <wim.taymans@gmail.com>
Fri, 1 Oct 2004 16:49:01 +0000 (16:49 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Fri, 1 Oct 2004 16:49:01 +0000 (16:49 +0000)
Original commit message from CVS:
* libs/gst/dataprotocol/dataprotocol.c: (gst_dp_crc):
Fix threadsafety of the crc checking function.

ChangeLog
libs/gst/dataprotocol/dataprotocol.c

index 0db8333..df03d83 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-10-01  Wim Taymans  <set EMAIL_ADDRESS environment variable>
+
+       * libs/gst/dataprotocol/dataprotocol.c: (gst_dp_crc):
+       Fix threadsafety of the crc checking function.
+
 2004-09-26  Thomas Vander Stichele  <thomas at apestaart dot org>
 
        patch by: Ronald Bultje
index 8df6fc0..2751298 100644 (file)
@@ -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) {