config.ForkedDaapdLatency);
config.latency = config.ForkedDaapdLatency;
conn->staticLatencyCorrection = 11025;
+ } else if (strstr(ua, "Airfoil") == ua) {
+ debug(2, "User-Agent is Airfoil");
+ conn->staticLatencyCorrection = 11025;
} else {
debug(2, "Unrecognised User-Agent. Using latency of %d frames.", config.latency);
}
char *paesiv = NULL;
char *prsaaeskey = NULL;
char *pfmtp = NULL;
+ char *pminlatency = NULL;
+ char *pmaxlatency = NULL;
char *cp = req->content;
int cp_left = req->contentlength;
char *next;
if (!strncmp(cp, "a=rsaaeskey:", 12))
prsaaeskey = cp + 12;
+ if (!strncmp(cp, "a=min-latency:", 14))
+ pminlatency = cp + 14;
+
+ if (!strncmp(cp, "a=max-latency:", 14))
+ pmaxlatency = cp + 14;
+
cp = next;
}
+
+ if (pminlatency) {
+ int minl = atoi(pminlatency);
+ debug(1,"Minimum latency %d specified",minl);
+ }
+
+ if (pmaxlatency) {
+ int maxl = atoi(pmaxlatency);
+ debug(1,"Maximum latency %d specified",maxl);
+ }
if ((paesiv == NULL) && (prsaaeskey == NULL)) {
// debug(1,"Unencrypted session requested?");