Index: webrtc/media/devices/gdivideorenderer.cc |
diff --git a/webrtc/media/devices/gdivideorenderer.cc b/webrtc/media/devices/gdivideorenderer.cc |
index f9472e5a6ed1399739a916558baf50039ec7cc39..bd67b68edd72a3b095e7c44c3ca1bc5a3f5e6f44 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); |
} |
} |
@@ -244,9 +243,8 @@ 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()))); |
+ window_.reset( |
+ new VideoWindow(initial_x_, initial_y_, frame.width(), frame.height())); |
} |
window_->OnFrame(frame); |
} |