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.
This commit is contained in:
Wim Taymans 2004-10-01 16:49:01 +00:00
parent 8df8094a9a
commit 7c424a60b5
2 changed files with 7 additions and 1 deletions

View file

@ -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

View 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) {