From fbd1c5533e23ec6384848571f3ea59e02d6a57aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Blin?= <sebastien.blin@savoirfairelinux.com> Date: Thu, 22 Oct 2020 20:49:24 -0400 Subject: [PATCH] audio_sender: mute state must be kept when restarting medias When settuping the AudioSender, the audio can be started with muteState_ = true. This avoid the case where the peer needs to renegotiate the medias (like changing their camera resolution, stopping a stream, etc) the audio will be restarted forgetting the mute state. Change-Id: Ic33e297809a72f4c7f85c1cdd354f99d953618cc GitLab: #327 --- src/media/audio/audio_sender.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/media/audio/audio_sender.cpp b/src/media/audio/audio_sender.cpp index ffe0735db0..f426c925a1 100644 --- a/src/media/audio/audio_sender.cpp +++ b/src/media/audio/audio_sender.cpp @@ -93,6 +93,7 @@ AudioSender::setup(SocketPair& socketPair) auto codec = std::static_pointer_cast<AccountAudioCodecInfo>(args_.codec); audioInput_ = jami::getAudioInput(id_); audioInput_->setFormat(codec->audioformat); + audioInput_->setMuted(muteState_); audioInput_->attach(this); return true; } -- GitLab