]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Quieten a few debug messages.
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Fri, 11 Mar 2022 06:03:49 +0000 (17:03 +1100)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Fri, 11 Mar 2022 06:03:49 +0000 (17:03 +1100)
audio_alsa.c
rtsp.c

index 4630d3c5de4704e06a8af4e9347c872daaa87baf..3217eafda93887f551ce72087bb064c94779162c 100644 (file)
@@ -1936,7 +1936,6 @@ static void flush(void) {
 }
 
 static void stop(void) {
-  debug(1,"audio_alsa stop called.");
   pthread_cleanup_debug_mutex_lock(&alsa_mutex, 10000, 1);
   if (alsa_backend_state != abm_disconnected) { // must be playing or connected...
     if (config.keep_dac_busy == 0) {
diff --git a/rtsp.c b/rtsp.c
index fc4bc51cc2e0c4bccdeaf946f86010e1ee0214dd..6a9d56378ab1ffa112373dc2a2ceb77be425191d 100644 (file)
--- a/rtsp.c
+++ b/rtsp.c
@@ -2344,6 +2344,15 @@ void handle_command(__attribute__((unused)) rtsp_conn_info *conn, rtsp_message *
   }
 }
 
+void handle_audio_mode(rtsp_conn_info *conn,
+                     rtsp_message *req,
+                     __attribute__((unused)) rtsp_message *resp) {
+  debug(2, "Connection %d: POST %s Content-Length %d", conn->connection_number, req->path,
+        req->contentlength);
+  debug_log_rtsp_message(2, NULL, req);
+}
+
+
 void handle_post(rtsp_conn_info *conn, rtsp_message *req, rtsp_message *resp) {
   resp->respcode = 200;
   if (strcmp(req->path, "/pair-setup") == 0) {
@@ -2364,6 +2373,8 @@ void handle_post(rtsp_conn_info *conn, rtsp_message *req, rtsp_message *resp) {
     handle_feedback(conn, req, resp);
   } else if (strcmp(req->path, "/command") == 0) {
     handle_command(conn, req, resp);
+  } else if (strcmp(req->path, "/audioMode") == 0) {
+    handle_audio_mode(conn, req, resp);
   } else {
     debug(1, "Connection %d: Unhandled POST %s Content-Length %d", conn->connection_number,
           req->path, req->contentlength);