mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-22 09:40:30 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user