From 9c43a9a900c21cebeeff41c31bdbc4b1cd3d64dd Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Tue, 8 Mar 2011 19:01:44 +0100 Subject: [PATCH] Make SET_PARAMETER content-type an argument to raop_send_req_set_parameter() --- src/raop.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/raop.c b/src/raop.c index b9f310e0..c1c91684 100644 --- a/src/raop.c +++ b/src/raop.c @@ -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, evrtsp_req_cb cb) +raop_send_req_set_parameter(struct raop_session *rs, struct evbuffer *evbuf, char *ctype, evrtsp_req_cb cb) { struct evrtsp_request *req; int ret; @@ -1143,7 +1143,7 @@ raop_send_req_set_parameter(struct raop_session *rs, struct evbuffer *evbuf, evr return -1; } - evrtsp_add_header(req->output_headers, "Content-Type", "text/parameters"); + evrtsp_add_header(req->output_headers, "Content-Type", ctype); ret = evrtsp_make_request(rs->ctrl, req, EVRTSP_REQ_SET_PARAMETER, rs->session_url); if (ret < 0) @@ -1720,7 +1720,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, cb); + ret = raop_send_req_set_parameter(rs, evbuf, "text/parameters", cb); if (ret < 0) DPRINTF(E_LOG, L_RAOP, "Could not send SET_PARAMETER request for volume\n");