aboutsummaryrefslogtreecommitdiffstats
path: root/src/mixer_control.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-12-14 17:40:50 +0100
committerMax Kellermann <max@duempel.org>2009-12-14 17:40:50 +0100
commitc3085d7b6130f24c3a1675e902bffb23775d5c3e (patch)
tree9960c6e1dbbebd9b99f7cec3dab8e54f06ef8182 /src/mixer_control.c
parent179502fe93532a3686c08f07d9ef6effaaf4f25a (diff)
parent8f7bc70bf5e47da66e57e5606b978ba3ee975d89 (diff)
downloadmpd-c3085d7b6130f24c3a1675e902bffb23775d5c3e.tar.gz
mpd-c3085d7b6130f24c3a1675e902bffb23775d5c3e.tar.xz
mpd-c3085d7b6130f24c3a1675e902bffb23775d5c3e.zip
Merge branch 'v0.15.x'
Conflicts: src/decoder/ffmpeg_plugin.c
Diffstat (limited to 'src/mixer_control.c')
-rw-r--r--src/mixer_control.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mixer_control.c b/src/mixer_control.c
index 42b59f51e..af01600a1 100644
--- a/src/mixer_control.c
+++ b/src/mixer_control.c
@@ -50,6 +50,10 @@ mixer_free(struct mixer *mixer)
assert(mixer->plugin != NULL);
assert(mixer->mutex != NULL);
+ /* mixers with the "global" flag set might still be open at
+ this point (see mixer_auto_close()) */
+ mixer_close(mixer);
+
g_mutex_free(mixer->mutex);
mixer->plugin->finish(mixer);