]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Quieten a few debug mssages, slightly shorten the minimum lead time needed for good...
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Wed, 22 Dec 2021 13:47:49 +0000 (13:47 +0000)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Wed, 22 Dec 2021 13:47:49 +0000 (13:47 +0000)
player.c
ptp-utilities.c

index 2e9819c9a709110d55c46b80916672ca79ff8c85..db7ec1696d186691d484d924f9e9acdc4bc0c317 100644 (file)
--- a/player.c
+++ b/player.c
@@ -1063,12 +1063,12 @@ static abuf_t *buffer_get_frame(rtsp_conn_info *conn) {
 
               int64_t lt = conn->first_packet_time_to_play - local_time_now;
 
-              if (lt < 150000000) {
+              if (lt < 130000000) {
                 debug(1, "Connection %d: Short lead time for first frame %" PRId64 ": %f seconds. Flushing 0.5 seconds",
                     conn->connection_number, conn->first_packet_timestamp, lt * 0.000000001);
                 do_flush(conn->first_packet_timestamp + 5 * 4410, conn);
               } else {
-                debug(1, "Connection %d: Lead time for first frame %" PRId64 ": %f seconds.",
+                debug(2, "Connection %d: Lead time for first frame %" PRId64 ": %f seconds.",
                     conn->connection_number, conn->first_packet_timestamp, lt * 0.000000001);
               }
 /*
index 2b60aaafea426a82f72eed8c19f7e2f957941fde..fa1c64071c5c732b8f873d42591b876f08f7addc 100644 (file)
@@ -148,7 +148,7 @@ int ptp_shm_interface_close() {
 }
 
 void ptp_send_control_message_string(const char *msg) {
-  debug(1, "Send control message to NQPTP: \"%s\"", msg);
+  debug(2, "Send control message to NQPTP: \"%s\"", msg);
   int s;
   unsigned short port = htons(NQPTP_CONTROL_PORT);
   struct sockaddr_in server;