From 1a5359025cf5657b83ded07945e74810cfcfa1d8 Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Fri, 9 Oct 2020 15:22:25 +0000 Subject: [PATCH] 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. --- src/source.c | 1 - src/yp.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/source.c b/src/source.c index 4f43de47..487b98ab 100644 --- a/src/source.c +++ b/src/source.c @@ -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); } } diff --git a/src/yp.c b/src/yp.c index 8b15d4f2..acd31ae7 100644 --- a/src/yp.c +++ b/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); 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);