summaryrefslogtreecommitdiff
path: root/src/modules/mixer/e_mod_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/mixer/e_mod_main.c')
-rw-r--r--src/modules/mixer/e_mod_main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/mixer/e_mod_main.c b/src/modules/mixer/e_mod_main.c
index 30b345800b..c5a31da68f 100644
--- a/src/modules/mixer/e_mod_main.c
+++ b/src/modules/mixer/e_mod_main.c
@@ -785,7 +785,7 @@ _mixer_sys_setup(E_Mixer_Instance *inst)
if (!conf->card)
{
ERR("conf->card in mixer sys setup is NULL");
- return 1;
+ /* return 1; */
}
if (inst->sys)
@@ -842,6 +842,8 @@ _mixer_sys_setup_default_card(E_Mixer_Instance *inst)
if (!card)
goto error;
+ if (inst->sys)
+ e_mod_mixer_del(inst->sys);
inst->sys = e_mod_mixer_new(card);
if (!inst->sys)
goto system_error;