]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
add a volume control mutex to serialise multiple attempts to change the volume
authorMike Brady <mikebrady@eircom.net>
Fri, 1 Feb 2019 21:07:35 +0000 (21:07 +0000)
committerMike Brady <mikebrady@eircom.net>
Fri, 1 Feb 2019 21:07:35 +0000 (21:07 +0000)
player.h

index 00793a927c53af9c290b15bee9338c37dd651273..28b0341baa2308211210604d189aef79692319bd 100644 (file)
--- 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