summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2019-11-03 19:19:07 -0500
committerGaming4JC <g4jc@hyperbola.info>2019-11-03 19:19:07 -0500
commite43bd33786a55907b1ed943b2c1ec5289e73c373 (patch)
tree8deb26fb6a2dfd2b20eb4f09da4b6de777a784bb
parent659b162dbbac094f277d9ec57fcd72711a0649e4 (diff)
downloaduxp-e43bd33786a55907b1ed943b2c1ec5289e73c373.tar.gz
Issue mcp-graveyard/UXP#1271 - Fix build failure in current in-tree libcubeb sndio module
Fixes build error due to errant typecast in PTHREAD_MUTEX_INITIALIZER.
-rw-r--r--media/libcubeb/src/cubeb_sndio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libcubeb/src/cubeb_sndio.c b/media/libcubeb/src/cubeb_sndio.c
index 7937897658..c7ac184465 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;