Relax Audio-Latency header check

Older G-only AirPort Express devices do not have an Audio-Latency header in
their RECORD reply.
This commit is contained in:
Julien BLACHE 2010-07-17 08:27:36 +02:00
parent 47bd255ffc
commit a678f5c99b

View File

@ -2500,13 +2500,9 @@ raop_cb_startup_record(struct evrtsp_request *req, void *arg)
/* Audio latency */ /* Audio latency */
param = evrtsp_find_header(req->input_headers, "Audio-Latency"); param = evrtsp_find_header(req->input_headers, "Audio-Latency");
if (!param) if (!param)
{ DPRINTF(E_INFO, L_RAOP, "RECORD reply from %s did not have an Audio-Latency header\n", rs->devname);
DPRINTF(E_LOG, L_RAOP, "Missing Audio-Latency header in RECORD reply\n"); else
DPRINTF(E_DBG, L_RAOP, "RAOP audio latency is %s\n", param);
goto cleanup;
}
DPRINTF(E_DBG, L_RAOP, "RAOP audio latency is %s\n", param);
rs->state = RAOP_RECORD; rs->state = RAOP_RECORD;