mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05: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:
parent
1664c4bc0b
commit
1a5359025c
@ -975,7 +975,6 @@ static void _parse_audio_info (source_t *source, const char *s)
|
|||||||
if (esc)
|
if (esc)
|
||||||
{
|
{
|
||||||
util_dict_set (source->audio_info, name, esc);
|
util_dict_set (source->audio_info, name, esc);
|
||||||
stats_event (source->mount, name, esc);
|
|
||||||
free (esc);
|
free (esc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2
src/yp.c
2
src/yp.c
@ -398,7 +398,7 @@ static int do_yp_add (ypdata_t *yp, char *s, unsigned len)
|
|||||||
add_yp_info (yp, value, YP_SERVER_GENRE);
|
add_yp_info (yp, value, YP_SERVER_GENRE);
|
||||||
free (value);
|
free (value);
|
||||||
|
|
||||||
value = stats_get_value (yp->mount, "bitrate");
|
value = stats_get_value (yp->mount, "audio_bitrate");
|
||||||
if (value == NULL)
|
if (value == NULL)
|
||||||
value = stats_get_value (yp->mount, "ice-bitrate");
|
value = stats_get_value (yp->mount, "ice-bitrate");
|
||||||
add_yp_info (yp, value, YP_BITRATE);
|
add_yp_info (yp, value, YP_BITRATE);
|
||||||
|
Loading…
Reference in New Issue
Block a user