mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +02:00
Fix crash in voice chat camera enabling.
This commit is contained in:
parent
64a6838764
commit
95f7704d14
1 changed files with 8 additions and 2 deletions
|
@ -1943,7 +1943,10 @@ void GroupCall::setupOutgoingVideo() {
|
|||
|
||||
_cameraState.value(
|
||||
) | rpl::combine_previous(
|
||||
) | rpl::start_with_next([=](VideoState previous, VideoState state) {
|
||||
) | rpl::filter([=](VideoState previous, VideoState state) {
|
||||
// Recursive entrance may happen if error happens when activating.
|
||||
return (previous != state);
|
||||
}) | rpl::start_with_next([=](VideoState previous, VideoState state) {
|
||||
const auto wasPaused = (previous == VideoState::Paused);
|
||||
const auto wasActive = (previous != VideoState::Inactive);
|
||||
const auto nowPaused = (state == VideoState::Paused);
|
||||
|
@ -1989,7 +1992,10 @@ void GroupCall::setupOutgoingVideo() {
|
|||
|
||||
_screenState.value(
|
||||
) | rpl::combine_previous(
|
||||
) | rpl::start_with_next([=](VideoState previous, VideoState state) {
|
||||
) | rpl::filter([=](VideoState previous, VideoState state) {
|
||||
// Recursive entrance may happen if error happens when activating.
|
||||
return (previous != state);
|
||||
}) | rpl::start_with_next([=](VideoState previous, VideoState state) {
|
||||
const auto wasPaused = (previous == VideoState::Paused);
|
||||
const auto wasActive = (previous != VideoState::Inactive);
|
||||
const auto nowPaused = (state == VideoState::Paused);
|
||||
|
|
Loading…
Add table
Reference in a new issue