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).
This commit is contained in:
Martin Pulec
2019-01-10 11:39:22 +01:00
parent a41a94b5e6
commit 8c6ec9f099

View File

@@ -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;