Add terminal \r\n sequence for RAOP volume control on 802.11g ApEx

The 802.11g ApEx seems to require a terminal \r\n sequence, otherwise it
just ignores the setting.
This commit is contained in:
Julien BLACHE 2011-03-04 21:20:07 +01:00
parent 83d966df09
commit 652fa9371f

View File

@ -1711,7 +1711,7 @@ raop_set_volume_internal(struct raop_session *rs, int volume, evrtsp_req_cb cb)
raop_volume = raop_volume_convert(volume);
/* Don't let locales get in the way here */
ret = evbuffer_add_printf(evbuf, "volume: %d.%06d", (int)raop_volume, -(int)(1000000.0 * (raop_volume - (int)raop_volume)));
ret = evbuffer_add_printf(evbuf, "volume: %d.%06d\r\n", (int)raop_volume, -(int)(1000000.0 * (raop_volume - (int)raop_volume)));
if (ret < 0)
{
DPRINTF(E_LOG, L_RAOP, "Out of memory for SET_PARAMETER payload (volume)\n");