Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STRIP_VOIP: падение клиента #40

Open
DeckerSU opened this issue Sep 28, 2016 · 0 comments
Open

STRIP_VOIP: падение клиента #40

DeckerSU opened this issue Sep 28, 2016 · 0 comments

Comments

@DeckerSU
Copy link

Доброго времени суток. Обнаружил следующий незначительный баг: если собрать клиента с объявленным #define STRIP_VOIP в common.h, то, при попытке входа в меню "О программе", а также некоторые другие пункты меню он просто "падает". Удалось выяснить причину ошибки, последнее что пишется в логи в этот момент это:

[28.09.2016 18:35:04.602].[c1b0] GUI->CORE: message=voip_call type: voip_sounds_mute

Смотрим в \core\connections\base_im.cpp и видим что в методе core::base_im::on_voip_mute_incoming_call_sounds не хватает соответствующих директив условной компиляции, т.е. чтобы не падало нужно как-то так:

void core::base_im::on_voip_mute_incoming_call_sounds(bool mute) {
#ifndef STRIP_VOIP
#ifdef _WIN32
    voip_manager_->get_call_manager()->mute_incoming_call_sounds(mute);
#endif
#endif
}

Т.е. про STRIP_VOIP в on_voip_mute_incoming_call_sounds видимо просто забыли.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant