]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
move the declaration of principal_conn_lock from player.h to rtsp.h where it should be.
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Thu, 21 Sep 2023 14:49:25 +0000 (15:49 +0100)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Thu, 21 Sep 2023 14:49:25 +0000 (15:49 +0100)
player.h
rtsp.h

index c5cfd002fa13e80554fcc6aaab8bf4734b222f68..11435bf91db1d685691be9f35792627f6927c8ed 100644 (file)
--- a/player.h
+++ b/player.h
@@ -415,7 +415,6 @@ typedef struct {
   uint64_t dac_buffer_queue_minimum_length;
 } rtsp_conn_info;
 
-extern pthread_mutex_t principal_conn_lock;
 extern int statistics_row; // will be reset to zero when debug level changes or statistics enabled
 
 void reset_buffer(rtsp_conn_info *conn);
diff --git a/rtsp.h b/rtsp.h
index 59b3ae3dd2c6341774b972f73fce51e3a51ce5f3..d58a0bc52481b329e4a75507719a6adfd4e047bd 100644 (file)
--- a/rtsp.h
+++ b/rtsp.h
@@ -3,6 +3,7 @@
 
 #include "player.h"
 
+extern pthread_rwlock_t principal_conn_lock;
 extern rtsp_conn_info *principal_conn;
 extern rtsp_conn_info **conns;