From 8c6ec9f099d3deef4be1eec99e26db02ad69dd59 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Thu, 10 Jan 2019 11:39:22 +0100 Subject: [PATCH] Audio: do not exit init prematurely Finish initialization even if we are not using audio since otherwise we'd have partially initialized state that causes problems on cleanup (eg. participants are not initalized but we may get mute events, eg. from a keyboard). --- src/audio/audio.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/audio/audio.cpp b/src/audio/audio.cpp index c294bbfb4..035cf9742 100644 --- a/src/audio/audio.cpp +++ b/src/audio/audio.cpp @@ -267,11 +267,6 @@ struct state_audio * audio_cfg_init(struct module *parent, const char *addrs, in s = new state_audio(parent); s->start_time = *start_time; - if (strcmp("none", send_cfg) == 0 && strcmp("none", recv_cfg) == 0) { - // nothing to do, return empty state - return s; - } - s->audio_channel_map = audio_channel_map; s->audio_scale = audio_scale;