mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 23:25:56 -05:00
Add optional RTP-Info parameter to raop_send_req_set_parameter()
This commit is contained in:
parent
9c43a9a900
commit
f097d80d6a
@ -1114,7 +1114,7 @@ raop_send_req_flush(struct raop_session *rs, uint64_t rtptime, evrtsp_req_cb cb)
|
||||
}
|
||||
|
||||
static int
|
||||
raop_send_req_set_parameter(struct raop_session *rs, struct evbuffer *evbuf, char *ctype, evrtsp_req_cb cb)
|
||||
raop_send_req_set_parameter(struct raop_session *rs, struct evbuffer *evbuf, char *ctype, char *rtpinfo, evrtsp_req_cb cb)
|
||||
{
|
||||
struct evrtsp_request *req;
|
||||
int ret;
|
||||
@ -1145,6 +1145,9 @@ raop_send_req_set_parameter(struct raop_session *rs, struct evbuffer *evbuf, cha
|
||||
|
||||
evrtsp_add_header(req->output_headers, "Content-Type", ctype);
|
||||
|
||||
if (rtpinfo)
|
||||
evrtsp_add_header(req->output_headers, "RTP-Info", rtpinfo);
|
||||
|
||||
ret = evrtsp_make_request(rs->ctrl, req, EVRTSP_REQ_SET_PARAMETER, rs->session_url);
|
||||
if (ret < 0)
|
||||
{
|
||||
@ -1720,7 +1723,7 @@ raop_set_volume_internal(struct raop_session *rs, int volume, evrtsp_req_cb cb)
|
||||
return -1;
|
||||
}
|
||||
|
||||
ret = raop_send_req_set_parameter(rs, evbuf, "text/parameters", cb);
|
||||
ret = raop_send_req_set_parameter(rs, evbuf, "text/parameters", NULL, cb);
|
||||
if (ret < 0)
|
||||
DPRINTF(E_LOG, L_RAOP, "Could not send SET_PARAMETER request for volume\n");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user