From: Mike Brady Date: Fri, 1 Feb 2019 21:07:35 +0000 (+0000) Subject: add a volume control mutex to serialise multiple attempts to change the volume X-Git-Tag: 3.3RC0~66^2~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46d117b69a94a4792cebdee61b38dfeda0a1d0cd;p=thirdparty%2Fshairport-sync.git add a volume control mutex to serialise multiple attempts to change the volume --- 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