Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 119eaaf0 authored by Pali Rohár's avatar Pali Rohár

libjingle: Fix mute support

parent 64d374b7
......@@ -247,7 +247,14 @@ bool LinphoneVoiceChannel::AddSendStream(const cricket::StreamParams& st)
}
bool LinphoneVoiceChannel::SetSend(SendFlags flag) {
mute_ = !flag;
mute_ = (flag == SEND_NOTHING);
audio_stream_mute_rtp(audio_stream_, mute_);
return true;
}
bool LinphoneVoiceChannel::Mute(bool on) {
mute_ = on;
audio_stream_mute_rtp(audio_stream_, mute_);
return true;
}
......
......@@ -133,7 +133,7 @@ class LinphoneVoiceChannel : public VoiceMediaChannel {
// Implement pure virtual methods of MediaChannel.
virtual void OnPacketReceived(talk_base::Buffer* packet);
virtual void OnRtcpReceived(talk_base::Buffer* packet);
virtual bool Mute(bool on) { return mute_; }
virtual bool Mute(bool on);
virtual bool SetSendBandwidth(bool autobw, int bps) { return true; }
virtual bool SetOptions(int options) { return true; }
virtual bool SetRecvRtpHeaderExtensions(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment