Skip to content
Snippets Groups Projects
Commit fbd1c553 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

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
parent 5717bd8f
Branches
No related tags found
No related merge requests found
...@@ -93,6 +93,7 @@ AudioSender::setup(SocketPair& socketPair) ...@@ -93,6 +93,7 @@ AudioSender::setup(SocketPair& socketPair)
auto codec = std::static_pointer_cast<AccountAudioCodecInfo>(args_.codec); auto codec = std::static_pointer_cast<AccountAudioCodecInfo>(args_.codec);
audioInput_ = jami::getAudioInput(id_); audioInput_ = jami::getAudioInput(id_);
audioInput_->setFormat(codec->audioformat); audioInput_->setFormat(codec->audioformat);
audioInput_->setMuted(muteState_);
audioInput_->attach(this); audioInput_->attach(this);
return true; return true;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment