mirror of
https://github.com/TelegramMessenger/tgcalls.git
synced 2026-11-18 21:35:28 +00:00
shared-audio-device-module
In case we disable video capture and instantly enable video capture, the PostTask already was invoked in setStateUpdated lambda, so the later setStateUpdated(nullptr) didn't cancel the sent event. After that we called instantly setOutgoingVideoState(Active), and later after that the event was delivered, calling setOutgoingVideoState(Inactive). Now we use a separate explicit guard for the event, so that it won't be delivered after setSTateUpdated(nullptr) call.
Telegram Calls Library
Copyright (c) 2020 The Telegram Calls Library Authors.
This code is published under the terms of the GNU Lesser General Public License version 3. Full license text can be found here: https://github.com/TelegramMessenger/tgcalls/blob/master/LICENSE
Languages
C++
70.2%
Objective-C++
17.7%
Go
5.4%
Objective-C
2.7%
Shell
1.2%
Other
2.7%