]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Fix a compilation bug and quieten a debug message.
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Wed, 12 May 2021 10:00:09 +0000 (11:00 +0100)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Wed, 12 May 2021 10:00:09 +0000 (11:00 +0100)
rtsp.c

diff --git a/rtsp.c b/rtsp.c
index a5564f1e7658d8647d6ffae9a640e0e065c50681..c670455b462d3a33010b30af491c51a0318b1d14 100644 (file)
--- a/rtsp.c
+++ b/rtsp.c
@@ -1811,7 +1811,7 @@ void handle_flush(rtsp_conn_info *conn, rtsp_message *req, rtsp_message *resp) {
         rtptime = uatoi(p + 1); // unsigned integer -- up to 2^32-1
     }
   }
-  debug(1, "RTSP Flush Requested: %u.", rtptime);
+  debug(2, "RTSP Flush Requested: %u.", rtptime);
   if (have_play_lock(conn)) {
 #ifdef CONFIG_METADATA
     if (p)
@@ -1819,8 +1819,11 @@ void handle_flush(rtsp_conn_info *conn, rtsp_message *req, rtsp_message *resp) {
     else
       send_metadata('ssnc', 'flsr', NULL, 0, NULL, 0);
 #endif
-    // hack -- ignore it for airplay 2
+
+// hack -- ignore it for airplay 2
+#ifdef CONFIG_AIRPLAY_2
     if (conn->airplay_type != ap_2)
+#endif
       player_flush(rtptime, conn); // will not crash even it there is no player thread.
     resp->respcode = 200;