diff options
author | Sebastien Alaiwan <[email protected]> | 2017-01-20 06:59:52 +0100 |
---|---|---|
committer | Paul Adenot <[email protected]> | 2017-01-20 04:32:23 -0800 |
commit | 93f9077ae0a7b26589d7c5ffcdaa3b7a120f5e7d (patch) | |
tree | f227241bbb5de2c34efc54d32c877e0e93116035 /src/cubeb_sndio.c | |
parent | d96e35f02dbb9a093e5bfdff4f2948b7a6e9d3f9 (diff) | |
download | cubeb-93f9077ae0a7b26589d7c5ffcdaa3b7a120f5e7d.tar.gz cubeb-93f9077ae0a7b26589d7c5ffcdaa3b7a120f5e7d.zip |
Fix erroneous usage of PTHREAD_MUTEX_INITIALIZER
Diffstat (limited to 'src/cubeb_sndio.c')
-rw-r--r-- | src/cubeb_sndio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cubeb_sndio.c b/src/cubeb_sndio.c index 7aae5d8..62f3b6f 100644 --- a/src/cubeb_sndio.c +++ b/src/cubeb_sndio.c @@ -245,7 +245,7 @@ sndio_stream_init(cubeb * context, s->data_cb = data_callback; s->state_cb = state_callback; s->arg = user_ptr; - s->mtx = PTHREAD_MUTEX_INITIALIZER; + s->mtx = (pthread_mutex_t)PTHREAD_MUTEX_INITIALIZER; s->rdpos = s->wrpos = 0; if (output_stream_params->format == CUBEB_SAMPLE_FLOAT32LE) { s->conv = 1; |