aboutsummaryrefslogtreecommitdiffstats
path: root/src/volume.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/volume.c')
-rw-r--r--src/volume.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/volume.c b/src/volume.c
index b22d29e68..dca8f5115 100644
--- a/src/volume.c
+++ b/src/volume.c
@@ -214,7 +214,9 @@ static int prepAlsaMixer(char * card) {
char * controlName = VOLUME_MIXER_ALSA_CONTROL_DEFAULT;
ConfigParam * param;
- if((err = snd_mixer_open(&volume_alsaMixerHandle,0))<0) {
+ err = snd_mixer_open(&volume_alsaMixerHandle,0);
+ snd_config_update_free_global();
+ if (err < 0) {
WARNING("problems opening alsa mixer: %s\n",snd_strerror(err));
return -1;
}