From ff0f4b11ab54ba9820290c34f4486b625d841120 Mon Sep 17 00:00:00 2001 From: Gaming4JC Date: Sun, 3 Nov 2019 19:19:07 -0500 Subject: Issue #1271 - Fix build failure in current in-tree libcubeb sndio module Fixes build error due to errant typecast in PTHREAD_MUTEX_INITIALIZER. --- media/libcubeb/src/cubeb_sndio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'media/libcubeb') diff --git a/media/libcubeb/src/cubeb_sndio.c b/media/libcubeb/src/cubeb_sndio.c index 793789765..c7ac18446 100644 --- a/media/libcubeb/src/cubeb_sndio.c +++ b/media/libcubeb/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; -- cgit v1.2.3