Fix a few compilation bugs. Thanks Travis.

This commit is contained in:
Mike Brady
2019-11-11 22:06:44 +00:00
parent e55f5c6765
commit b88c9255b7
2 changed files with 7 additions and 2 deletions
+4 -1
View File
@@ -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
+3 -1
View File
@@ -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);