mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-18 04:05:34 +00:00
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:
parent
8df8094a9a
commit
7c424a60b5
2 changed files with 7 additions and 1 deletions
|
@ -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>
|
2004-09-26 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
patch by: Ronald Bultje
|
patch by: Ronald Bultje
|
||||||
|
|
|
@ -50,7 +50,8 @@ static guint16
|
||||||
gst_dp_crc (const guint8 * buffer, register guint length)
|
gst_dp_crc (const guint8 * buffer, register guint length)
|
||||||
{
|
{
|
||||||
static gboolean initialized = FALSE;
|
static gboolean initialized = FALSE;
|
||||||
static guint16 crc_register, crc_table[256];
|
static guint16 crc_table[256];
|
||||||
|
guint16 crc_register;
|
||||||
unsigned long i, j, k;
|
unsigned long i, j, k;
|
||||||
|
|
||||||
if (!initialized) {
|
if (!initialized) {
|
||||||
|
|
Loading…
Reference in a new issue