-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
923ba8c
commit 1c27ba1
Showing
2 changed files
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters