mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-01-03 14:56:34 -05:00
Feature: Also send samplerate, and channels on YP touch
This commit is contained in:
parent
220ccbe1e0
commit
990484ec64
5
src/yp.c
5
src/yp.c
@ -480,8 +480,9 @@ static int do_yp_touch (ypdata_t *yp, char *s, unsigned len)
|
|||||||
update_yp_info(yp);
|
update_yp_info(yp);
|
||||||
|
|
||||||
ret = snprintf (s, len, "action=touch&sid=%s&st=%s"
|
ret = snprintf (s, len, "action=touch&sid=%s&st=%s"
|
||||||
"&listeners=%u&max_listeners=%u&stype=%s\r\n",
|
"&listeners=%u&max_listeners=%u&stype=%s&samplerate=%s&channels=%s",
|
||||||
yp->sid, yp->current_song, listeners, max_listeners, yp->subtype);
|
yp->sid, yp->current_song, listeners, max_listeners, yp->subtype,
|
||||||
|
yp->audio_samplerate, yp->audio_channels);
|
||||||
|
|
||||||
if (ret >= (signed)len)
|
if (ret >= (signed)len)
|
||||||
return ret+1; /* space required for above text and nul*/
|
return ret+1; /* space required for above text and nul*/
|
||||||
|
Loading…
Reference in New Issue
Block a user