From 2627757e005e79043a93f28518e531ea465e93c8 Mon Sep 17 00:00:00 2001 From: Mike Brady Date: Thu, 18 Jun 2015 16:12:15 +0000 Subject: [PATCH] Compile DACP-ID and Active-Remote metadata stuff only if metadata is selected. --- rtsp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rtsp.c b/rtsp.c index 24ff917a..2c4af6f8 100644 --- a/rtsp.c +++ b/rtsp.c @@ -632,14 +632,19 @@ static void handle_setup(rtsp_conn_info *conn, rtsp_message *req, rtsp_message * // get the active remote char *p; active_remote = strtoul(ar, &p, 10); +#ifdef CONFIG_METADATA send_metadata('ssnc','acre',ar,strlen(ar),req,1); +#endif } +#ifdef CONFIG_METADATA ar = msg_get_header(req, "DACP-ID"); if (ar) { debug(1,"DACP-ID string seen: \"%s\".",ar); send_metadata('ssnc','daid',ar,strlen(ar),req,1); } +#endif + // select latency // if iTunes V10 or later is detected, use the iTunes latency setting // if AirPlay is detected, use the AirPlay latency setting