Index: webrtc/media/devices/gdivideorenderer.cc |
diff --git a/webrtc/media/devices/gdivideorenderer.cc b/webrtc/media/devices/gdivideorenderer.cc |
index f9472e5a6ed1399739a916558baf50039ec7cc39..3d6f2cb0fc99278f0e390dba8efccef23fad1481 100644 |
--- a/webrtc/media/devices/gdivideorenderer.cc |
+++ b/webrtc/media/devices/gdivideorenderer.cc |
@@ -137,8 +137,7 @@ void GdiVideoRenderer::VideoWindow::OnFrame(const VideoFrame& video_frame) { |
const VideoFrame* frame = video_frame.GetCopyWithRotationApplied(); |
- if (SetSize(static_cast<int>(frame->GetWidth()), |
- static_cast<int>(frame->GetHeight()))) { |
+ if (SetSize(frame->width(), frame->height())) { |
SendMessage(handle(), kRenderFrameMsg, reinterpret_cast<WPARAM>(frame), 0); |
} |
} |
@@ -245,8 +244,7 @@ GdiVideoRenderer::~GdiVideoRenderer() {} |
void GdiVideoRenderer::OnFrame(const VideoFrame& frame) { |
if (!window_.get()) { // Create the window for the first frame |
window_.reset(new VideoWindow(initial_x_, initial_y_, |
- static_cast<int>(frame.GetWidth()), |
- static_cast<int>(frame.GetHeight()))); |
+ frame.width(), frame.height())); |
pbos-webrtc
2016/03/31 14:49:09
git cl format I think?
|
} |
window_->OnFrame(frame); |
} |