]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Make the scan interval five seconds and quieten some more debug messages.
authorMike Brady <mikebrady@eircom.net>
Wed, 21 Feb 2018 18:38:13 +0000 (18:38 +0000)
committerMike Brady <mikebrady@eircom.net>
Wed, 21 Feb 2018 18:38:13 +0000 (18:38 +0000)
dacp.c
mdns_avahi.c
player.c

diff --git a/dacp.c b/dacp.c
index ab67af6ac7c38e03daa5f28c8a93b1f8fab3cb42..500b936575b424d16d7eb3f32dc98fe0668c900e 100644 (file)
--- a/dacp.c
+++ b/dacp.c
@@ -249,7 +249,7 @@ int dacp_send_command(const char *command, char **body, ssize_t *bodysize) {
 int send_simple_dacp_command(const char *command) {
   int reply = 0;
   char *server_reply = NULL;
-  debug(1, "Sending command \"%s\".", command);
+  debug(2, "Sending command \"%s\".", command);
   ssize_t reply_size = 0;
   reply = dacp_send_command(command, &server_reply, &reply_size);
   if (server_reply) {
@@ -591,7 +591,7 @@ void *dacp_monitor_thread_code(void *na) {
       response = NULL;
     }
     */
-    sleep(2);
+    sleep(5); // check every five seconds
   }
   debug(1, "DACP monitor thread exiting.");
   pthread_exit(NULL);
index 4ef527e6605d15cf4e687f686572cc6791813167..9a304e9ffec4ae994188fe886334eddbf466a92e 100644 (file)
@@ -87,7 +87,7 @@ static void resolve_callback(AvahiServiceResolver *r, AVAHI_GCC_UNUSED AvahiIfIn
       dacpid += strlen("iTunes_Ctrl_");
       if (strcmp(dacpid, conn->dacp_id) == 0) {
         if (conn->dacp_port != port) {
-          debug(1, "Client's DACP port: %u.", port);
+          debug(2, "Client's DACP port: %u.", port);
           conn->dacp_port = port;
 #ifdef HAVE_DACP_CLIENT
           set_dacp_server_information(conn);
index 3ab228f8571fe5dacac1dda0aafe4d5d18353c53..eb1c6c5052b3556d9fb8d06bf38f072f094e4cf6 100644 (file)
--- a/player.c
+++ b/player.c
@@ -1887,7 +1887,7 @@ static void *player_thread_func(void *arg) {
               size_t filler_length =
                   config.resyncthreshold * config.output_rate; // number of samples
               if ((sync_error > 0) && (sync_error > filler_length)) {
-                debug(1, "Large positive sync error: %lld.", sync_error);
+                // debug(1, "Large positive sync error: %lld.", sync_error);
                 frames_to_drop = sync_error / conn->output_sample_ratio;
               } else if ((sync_error < 0) && ((-sync_error) > filler_length)) {
                 // debug(1, "Large negative sync error: %lld. Inserting silence.", sync_error);