diff options
author | Mike Brady <mikebrady@eircom.net> | 2019-11-10 18:05:59 +0000 |
---|---|---|
committer | Mike Brady <mikebrady@eircom.net> | 2019-11-10 18:05:59 +0000 |
commit | 2f2442f4aa5e478c9fdea826c3f59b4012cd907d (patch) | |
tree | 6aa856e630ce4bff218b9b02a457dbbfa100a794 /shairport.c | |
parent | aeb46892e0d187b4dc7373ffecfaff2d298bc48f (diff) |
Fix D-Bus loudness switch silencing output. Rename LoudnessFiulterActive to Loudness. Add Convolution, ConvolutionGain and ConvolutionImpulseResponseFile properties to the D-Bus interface.
Diffstat (limited to 'shairport.c')
-rw-r--r-- | shairport.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/shairport.c b/shairport.c index 4216d5b..9c51912 100644 --- a/shairport.c +++ b/shairport.c @@ -962,12 +962,12 @@ int parse_options(int argc, char **argv) { } if (config_lookup_string(config.cfg, "dsp.convolution_ir_file", &str)) { - config.convolution_ir_file = str; + config.convolution_ir_file = strdup(str); convolver_init(config.convolution_ir_file, config.convolution_max_length); } if (config.convolution && config.convolution_ir_file == NULL) { - die("Convolution enabled but no convolution_ir_file provided"); + warn("Convolution enabled but no convolution_ir_file provided"); } #endif if (config_lookup_string(config.cfg, "dsp.loudness", &str)) { @@ -1339,6 +1339,9 @@ Actually, there is no stop_mpris_service() function. if (config.service_name) free(config.service_name); + + if (config.convolution_ir_file) + free(config.convolution_ir_file); if (config.regtype) free(config.regtype); |