mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
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.
This commit is contained in:
parent
e8ef3dac6e
commit
c6ebc31067
1 changed files with 2 additions and 1 deletions
|
@ -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