From 46d117b69a94a4792cebdee61b38dfeda0a1d0cd Mon Sep 17 00:00:00 2001 From: Mike Brady Date: Fri, 1 Feb 2019 21:07:35 +0000 Subject: [PATCH] add a volume control mutex to serialise multiple attempts to change the volume --- player.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player.h b/player.h index 00793a92..28b0341b 100644 --- a/player.h +++ b/player.h @@ -133,7 +133,7 @@ typedef struct { int32_t last_seqno_read; // mutexes and condition variables pthread_cond_t flowcontrol; - pthread_mutex_t ab_mutex, flush_mutex; + pthread_mutex_t ab_mutex, flush_mutex, volume_control_mutex; int fix_volume; uint32_t timestamp_epoch, last_timestamp, maximum_timestamp_interval; // timestamp_epoch of zero means not initialised, could start at 2 -- 2.47.3