From b88c9255b7566b8008236f64cea1ce5d82b15de2 Mon Sep 17 00:00:00 2001 From: Mike Brady Date: Mon, 11 Nov 2019 22:06:44 +0000 Subject: [PATCH] Fix a few compilation bugs. Thanks Travis. --- player.c | 5 ++++- shairport.c | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/player.c b/player.c index 94fe3802..21eb432f 100644 --- a/player.c +++ b/player.c @@ -2370,15 +2370,18 @@ void *player_thread_func(void *arg) { int do_loudness = config.loudness; + +#ifdef CONFIG_CONVOLUTION int do_convolution = 0; if ((config.convolution) && (config.convolver_valid)) do_convolution = 1; - + // we will apply the convolution gain if convolution is enabled, even if there is no valid convolution happening int convolution_is_enabled = 0; if (config.convolution) convolution_is_enabled = 1; +#endif if (do_loudness #ifdef CONFIG_CONVOLUTION diff --git a/shairport.c b/shairport.c index c9b5ba1c..d2a1a494 100644 --- a/shairport.c +++ b/shairport.c @@ -1339,9 +1339,11 @@ Actually, there is no stop_mpris_service() function. if (config.service_name) free(config.service_name); - + +#ifdef CONFIG_CONVOLUTION if (config.convolution_ir_file) free(config.convolution_ir_file); +#endif if (config.regtype) free(config.regtype);