Index: webrtc/media/engine/webrtcvideoengine2.cc |
diff --git a/webrtc/media/engine/webrtcvideoengine2.cc b/webrtc/media/engine/webrtcvideoengine2.cc |
index 335ee3a691aed1f66d1f4bc0e628d07e2618fca3..e0ce0d50df4e37cbf315a872e2fe243c9bde7fa6 100644 |
--- a/webrtc/media/engine/webrtcvideoengine2.cc |
+++ b/webrtc/media/engine/webrtcvideoengine2.cc |
@@ -16,6 +16,7 @@ |
#include <string> |
#include <utility> |
+#include "webrtc/api/video/i420_buffer.h" |
#include "webrtc/base/copyonwritebuffer.h" |
#include "webrtc/base/logging.h" |
#include "webrtc/base/stringutils.h" |
@@ -1681,7 +1682,7 @@ bool WebRtcVideoChannel2::WebRtcVideoSendStream::SetVideoSend( |
rtc::scoped_refptr<webrtc::I420Buffer> black_buffer( |
webrtc::I420Buffer::Create(last_frame_info_.width, |
last_frame_info_.height)); |
- black_buffer->SetToBlack(); |
+ webrtc::I420Buffer::SetBlack(black_buffer); |
encoder_sink_->OnFrame(webrtc::VideoFrame( |
black_buffer, last_frame_info_.rotation, last_frame_timestamp_us_)); |