Issue #1271 - Fix build failure in current in-tree libcubeb sndio module

Fixes build error due to errant typecast in PTHREAD_MUTEX_INITIALIZER.
This commit is contained in:
Gaming4JC 2019-11-03 19:19:07 -05:00 committed by Roy Tam
commit 3c2728e97e

View file

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