diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2004-10-01 16:49:01 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2012-09-11 01:54:37 +0100 |
commit | b8d7a44a413af92622084616096c4bc0932d9040 (patch) | |
tree | 1aa96b6c2cc22e4117a0fa376f37807439a84bd0 /gst/gdp/dataprotocol.c | |
parent | a2c2a91a8bddb8fe911e0607a83671c72128df36 (diff) |
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.
Diffstat (limited to 'gst/gdp/dataprotocol.c')
-rw-r--r-- | gst/gdp/dataprotocol.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/gdp/dataprotocol.c b/gst/gdp/dataprotocol.c index 8df6fc080..27512987e 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) { |