John Preston 1c27ba1c6b Fix race in video capture enable / disable.
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.
2022-12-08 11:40:18 +04:00
2022-11-01 18:23:30 +04:00
2022-11-01 18:23:30 +04:00
2020-07-09 20:12:21 +04:00
2020-12-14 19:33:27 +04:00
2022-11-05 15:57:36 +04:00
2020-12-14 19:33:27 +04:00

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

S
Description
No description provided
Readme
9.1 MiB
0 Stars 1 Watchers 0 Forks
Languages
C++ 70.2%
Objective-C++ 17.7%
Go 5.4%
Objective-C 2.7%
Shell 1.2%
Other 2.7%