From: Mike Brady Date: Wed, 21 Feb 2018 18:38:13 +0000 (+0000) Subject: Make the scan interval five seconds and quieten some more debug messages. X-Git-Tag: 3.2d29~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b05ced6658d8ee8d27084490a22d7e1b84051c7e;p=thirdparty%2Fshairport-sync.git Make the scan interval five seconds and quieten some more debug messages. --- diff --git a/dacp.c b/dacp.c index ab67af6a..500b9365 100644 --- 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); diff --git a/mdns_avahi.c b/mdns_avahi.c index 4ef527e6..9a304e9f 100644 --- a/mdns_avahi.c +++ b/mdns_avahi.c @@ -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); diff --git a/player.c b/player.c index 3ab228f8..eb1c6c50 100644 --- 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);