| Index: webrtc/media/engine/webrtcvideoengine2.cc
|
| diff --git a/webrtc/media/engine/webrtcvideoengine2.cc b/webrtc/media/engine/webrtcvideoengine2.cc
|
| index 5964654af654756f22624fb5cf9faa9ea4f26876..c6bdafee5a336666a4fd46f5aab78c0590525105 100644
|
| --- a/webrtc/media/engine/webrtcvideoengine2.cc
|
| +++ b/webrtc/media/engine/webrtcvideoengine2.cc
|
| @@ -1980,12 +1980,14 @@
|
| info.adapt_reason = CoordinatedVideoAdapter::ADAPTREASON_NONE;
|
|
|
| if (capturer_ != NULL) {
|
| - VideoFormat last_captured_frame_format;
|
| - capturer_->GetStats(&info.adapt_frame_drops, &info.effects_frame_drops,
|
| - &info.capturer_frame_time,
|
| - &last_captured_frame_format);
|
| - info.input_frame_width = last_captured_frame_format.width;
|
| - info.input_frame_height = last_captured_frame_format.height;
|
| + if (!capturer_->IsMuted()) {
|
| + VideoFormat last_captured_frame_format;
|
| + capturer_->GetStats(&info.adapt_frame_drops, &info.effects_frame_drops,
|
| + &info.capturer_frame_time,
|
| + &last_captured_frame_format);
|
| + info.input_frame_width = last_captured_frame_format.width;
|
| + info.input_frame_height = last_captured_frame_format.height;
|
| + }
|
| if (capturer_->video_adapter() != nullptr) {
|
| info.adapt_changes += capturer_->video_adapter()->adaptation_changes();
|
| info.adapt_reason = capturer_->video_adapter()->adapt_reason();
|
|
|