Commit 7c424a60 authored by Wim Taymans's avatar Wim Taymans
Browse files

libs/gst/dataprotocol/dataprotocol.c: 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.
parent 8df8094a
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
......
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment