]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Quieten a few debug messages.
authorMike Brady <mikebrady@eircom.net>
Fri, 23 Nov 2018 15:11:04 +0000 (15:11 +0000)
committerMike Brady <mikebrady@eircom.net>
Fri, 23 Nov 2018 15:11:04 +0000 (15:11 +0000)
player.c
rtp.c
rtsp.c

index 859e3d7f64f9d8e84766ee117edda69393dc2f7e..dcd2a93e45d4cc23a2df4b25dba720e725bf6e13 100644 (file)
--- a/player.c
+++ b/player.c
@@ -954,7 +954,7 @@ static abuf_t *buffer_get_frame(rtsp_conn_info *conn) {
                 uint64_t lateness = local_time_now - conn->first_packet_time_to_play;
                 lateness = (lateness * 1000000) >> 32; // microseconds
                 debug(
-                    1,
+                    3,
                     "First packet is %" PRIu64 " microseconds late! Flushing 0.5 seconds",lateness);
                 do_flush(conn->first_packet_timestamp + 5 * 4410,
                              conn);
@@ -988,7 +988,7 @@ static abuf_t *buffer_get_frame(rtsp_conn_info *conn) {
             if (local_time_now > conn->first_packet_time_to_play) {
               uint64_t lateness = local_time_now - conn->first_packet_time_to_play;
               lateness = (lateness * 1000000) >> 32; // microseconds
-              debug(1,"Gone past starting time by %" PRIu64 " microseconds.", lateness);
+              debug(3,"Gone past starting time by %" PRIu64 " microseconds.", lateness);
               have_sent_prefiller_silence = 1;
               conn->ab_buffering = 0;
 
@@ -1642,11 +1642,11 @@ void *player_thread_func(void *arg) {
   debug(3, "Output bit depth is %d.", output_bit_depth);
 
   if (conn->input_bit_depth > output_bit_depth) {
-    debug(1, "Dithering will be enabled because the input bit depth is greater than the output bit "
+    debug(3, "Dithering will be enabled because the input bit depth is greater than the output bit "
              "depth");
   }
   if (conn->fix_volume != 0x10000) {
-    debug(1, "Dithering will be enabled because the output volume is being altered in software");
+    debug(3, "Dithering will be enabled because the output volume is being altered in software");
   }
 
   // we need an intermediate "transition" buffer
diff --git a/rtp.c b/rtp.c
index 4b71c0eeaae07e8b6a229817ad4cbc0e0cd9a35c..4e5a98d6fd659bd21788eab6b4cd5d703b8adb0a 100644 (file)
--- a/rtp.c
+++ b/rtp.c
@@ -100,9 +100,9 @@ uint64_t local_to_remote_time_difference_now(rtsp_conn_info *conn) {
 void rtp_audio_receiver_cleanup_handler(void *arg) {
   debug(3, "Audio Receiver Cleanup.");
   rtsp_conn_info *conn = (rtsp_conn_info *)arg;
-  debug(1, "shutdown audio socket.");
+  debug(3, "shutdown audio socket.");
   shutdown(conn->audio_socket, SHUT_RDWR);
-  debug(1, "close audio socket.");
+  debug(3, "close audio socket.");
   close(conn->audio_socket);
   
   debug(3, "Audio Receiver Cleanup Successful.");
@@ -242,9 +242,9 @@ void *rtp_audio_receiver(void *arg) {
 void rtp_control_handler_cleanup_handler(void *arg) {
   debug(3, "Control Receiver Cleanup.");
   rtsp_conn_info *conn = (rtsp_conn_info *)arg;
-  debug(1, "shutdown control socket.");
+  debug(3, "shutdown control socket.");
   shutdown(conn->control_socket, SHUT_RDWR);
-  debug(1, "close control socket.");
+  debug(3, "close control socket.");
   close(conn->control_socket);
   debug(3, "Control Receiver Cleanup Successful.");
 }
@@ -561,9 +561,9 @@ void rtp_timing_receiver_cleanup_handler(void *arg) {
   rtsp_conn_info *conn = (rtsp_conn_info *)arg;
   pthread_cancel(conn->timer_requester);
   pthread_join(conn->timer_requester, NULL);
-  debug(1, "shutdown timing socket.");
+  debug(3, "shutdown timing socket.");
   shutdown(conn->timing_socket, SHUT_RDWR);
-  debug(1, "close timing socket.");
+  debug(3, "close timing socket.");
   close(conn->timing_socket);
   debug(3, "Timing Receiver Cleanup Successful.");
 }
diff --git a/rtsp.c b/rtsp.c
index b4d9d4df24c036c864a6fdc6c048bb23104dc2f8..6d783c739a48309d563840cdbecd124f9f0fe615 100644 (file)
--- a/rtsp.c
+++ b/rtsp.c
@@ -543,7 +543,7 @@ enum rtsp_read_request_response rtsp_read_request(rtsp_conn_info *conn, rtsp_mes
         continue;
       char errorstring[1024];
       strerror_r(errno, (char *)errorstring, sizeof(errorstring));
-      debug(1, "rtsp_read_request_response_read_error %d: \"%s\".", errno, (char *)errorstring);
+      debug(1, "Connection %d: rtsp_read_request_response_read_error %d: \"%s\".", conn->connection_number, errno, (char *)errorstring);
       reply = rtsp_read_request_response_read_error;
       goto shutdown;
     }
@@ -2106,7 +2106,7 @@ static void *rtsp_conversation_thread_func(void *pconn) {
           }
         }
         if (method_selected == 0) {
-          debug(1, "Connection %d: Unrecognised and unhandled rtsp request \"%s\".",
+          debug(3, "Connection %d: Unrecognised and unhandled rtsp request \"%s\".",
                 conn->connection_number, req->method);
 
           int y = req->contentlength;
@@ -2123,7 +2123,7 @@ static void *rtsp_conversation_thread_func(void *pconn) {
               obfp += 2;
             };
             *obfp = 0;
-            debug(1, "Content: \"%s\".", obf);
+            debug(3, "Content: \"%s\".", obf);
           }
         }
       }