From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Fri, 11 Mar 2022 06:03:49 +0000 (+1100) Subject: Quieten a few debug messages. X-Git-Tag: 4.1-rc1~24^2~255 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d96f79ddc845f0f11cac8cf75820da8699a3f18;p=thirdparty%2Fshairport-sync.git Quieten a few debug messages. --- diff --git a/audio_alsa.c b/audio_alsa.c index 4630d3c5..3217eafd 100644 --- a/audio_alsa.c +++ b/audio_alsa.c @@ -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 fc4bc51c..6a9d5637 100644 --- 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);