Chromium Code Reviews| Index: remoting/protocol/webrtc_video_capturer_adapter.cc |
| diff --git a/remoting/protocol/webrtc_video_capturer_adapter.cc b/remoting/protocol/webrtc_video_capturer_adapter.cc |
| index 96c2c3af891e62d8b95a3d18218d3e7920be48ec..338101113bf66c3c662fcf2273ec24d92968b135 100644 |
| --- a/remoting/protocol/webrtc_video_capturer_adapter.cc |
| +++ b/remoting/protocol/webrtc_video_capturer_adapter.cc |
| @@ -161,12 +161,11 @@ void WebrtcVideoCapturerAdapter::OnCaptureCompleted( |
| DCHECK(capture_pending_); |
| capture_pending_ = false; |
| - scoped_ptr<webrtc::DesktopFrame> owned_frame(frame); |
| - |
| - // Drop the frame if there were no changes. |
| - if (!owned_frame || owned_frame->updated_region().is_empty()) |
| + if (!frame) |
|
Jamie
2016/02/24 23:31:38
If this is a stop-gap solution, does it warrant a
Sergey Ulanov
2016/02/25 00:50:15
Done.
|
| return; |
| + scoped_ptr<webrtc::DesktopFrame> owned_frame(frame); |
| + |
| size_t width = frame->size().width(); |
| size_t height = frame->size().height(); |
| if (!yuv_frame_ || yuv_frame_->GetWidth() != width || |