From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Sun, 12 Sep 2021 14:31:45 +0000 (+0100) Subject: Allow compilation with AirPlay2 not selected. X-Git-Tag: 4.1-dev~4^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e06be8c91673e396356f4002fa03399675059aac;p=thirdparty%2Fshairport-sync.git Allow compilation with AirPlay2 not selected. --- diff --git a/rtsp.c b/rtsp.c index c8bec51c..62fbb7da 100644 --- a/rtsp.c +++ b/rtsp.c @@ -4472,22 +4472,21 @@ void rtsp_conversation_thread_cleanup_function(void *arg) { debug(1, "Connection %d: rtsp_conversation_thread_func_cleanup_function called.", conn->connection_number); +#ifdef CONFIG_AIRPLAY_2 teardown_phase_one(conn); teardown_phase_two(conn); +#endif debug(3, "Connection %d terminating:Closing timing, control and audio sockets...", conn->connection_number); if (conn->control_socket) { close(conn->control_socket); - debug(1, "Connection %d: closing control port %u", conn->local_ap2_control_port); } if (conn->timing_socket) { close(conn->timing_socket); - debug(1, "Connection %d: closing timing port %u", conn->local_ap2_control_port); } if (conn->audio_socket) { close(conn->audio_socket); - debug(1, "Connection %d: closing audio port %u", conn->local_ap2_control_port); }