Compile DACP-ID and Active-Remote metadata stuff only if metadata is selected.

This commit is contained in:
Mike Brady
2015-06-18 16:12:15 +00:00
parent c4e8850474
commit 2627757e00
+5
View File
@@ -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