1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-06-16 06:15:24 +00:00

Fix: Do not allow the source to set random stats values'

If your software depends on those values you likely want to
use the corresponding audio_*-values.
This commit is contained in:
Philipp Schafft 2020-10-09 15:22:25 +00:00
parent 1664c4bc0b
commit 1a5359025c
2 changed files with 1 additions and 2 deletions

View File

@ -975,7 +975,6 @@ static void _parse_audio_info (source_t *source, const char *s)
if (esc)
{
util_dict_set (source->audio_info, name, esc);
stats_event (source->mount, name, esc);
free (esc);
}
}

View File

@ -398,7 +398,7 @@ static int do_yp_add (ypdata_t *yp, char *s, unsigned len)
add_yp_info (yp, value, YP_SERVER_GENRE);
free (value);
value = stats_get_value (yp->mount, "bitrate");
value = stats_get_value (yp->mount, "audio_bitrate");
if (value == NULL)
value = stats_get_value (yp->mount, "ice-bitrate");
add_yp_info (yp, value, YP_BITRATE);