diff --git a/webrtc/video_engine/include/vie_codec.h b/webrtc/video_engine/include/vie_codec.h index 976aee7d2..33ada2841 100644 --- a/webrtc/video_engine/include/vie_codec.h +++ b/webrtc/video_engine/include/vie_codec.h @@ -39,7 +39,7 @@ class WEBRTC_DLLEXPORT ViEEncoderObserver { // This method is called whenever the state of the AutoMuter changes, i.e., // when |is_muted| toggles. // TODO(hlundin): Remove the default implementation when possible. - virtual void VideoAutoMuted(bool is_muted) {} + virtual void VideoAutoMuted(int video_channel, bool is_muted) {} protected: virtual ~ViEEncoderObserver() {} diff --git a/webrtc/video_engine/test/auto_test/source/vie_autotest_codec.cc b/webrtc/video_engine/test/auto_test/source/vie_autotest_codec.cc index d242831ad..84ae14cb3 100644 --- a/webrtc/video_engine/test/auto_test/source/vie_autotest_codec.cc +++ b/webrtc/video_engine/test/auto_test/source/vie_autotest_codec.cc @@ -88,7 +88,7 @@ class TestCodecObserver last_outgoing_bitrate_ += bitrate; } - virtual void VideoAutoMuted(bool is_muted) { + virtual void VideoAutoMuted(int video_channel, bool is_muted) { video_auto_muted_called_++; } diff --git a/webrtc/video_engine/test/auto_test/source/vie_autotest_custom_call.cc b/webrtc/video_engine/test/auto_test/source/vie_autotest_custom_call.cc index 5d2ecfc5b..103e422dd 100644 --- a/webrtc/video_engine/test/auto_test/source/vie_autotest_custom_call.cc +++ b/webrtc/video_engine/test/auto_test/source/vie_autotest_custom_call.cc @@ -73,7 +73,7 @@ class ViEAutotestEncoderObserver : public webrtc::ViEEncoderObserver { << " BR: " << bitrate << std::endl; } - virtual void VideoAutoMuted(bool is_muted) { + virtual void VideoAutoMuted(int video_channel, bool is_muted) { std::cout << "VideoAutoMuted: " << is_muted << std::endl; } }; diff --git a/webrtc/video_engine/vie_encoder.cc b/webrtc/video_engine/vie_encoder.cc index eb75d6297..a3023f9aa 100644 --- a/webrtc/video_engine/vie_encoder.cc +++ b/webrtc/video_engine/vie_encoder.cc @@ -1113,7 +1113,7 @@ void ViEEncoder::OnNetworkChanged(const uint32_t bitrate_bps, ViEId(engine_id_, channel_id_), "%s: video_auto_muted_ changed to %i", __FUNCTION__, video_auto_muted_); - codec_observer_->VideoAutoMuted(video_auto_muted_); + codec_observer_->VideoAutoMuted(channel_id_, video_auto_muted_); } } }