Index: webrtc/video/video_capture_input_unittest.cc |
diff --git a/webrtc/video/video_capture_input_unittest.cc b/webrtc/video/video_capture_input_unittest.cc |
index 2da722b47d4db297b4414084a005a6d07ec918a3..8ec89c7f2996bc43bf56f09b709f3af53ed79dd4 100644 |
--- a/webrtc/video/video_capture_input_unittest.cc |
+++ b/webrtc/video/video_capture_input_unittest.cc |
@@ -54,7 +54,8 @@ |
EXPECT_TRUE(input_->GetVideoFrame(&frame)); |
ASSERT_TRUE(frame.video_frame_buffer()); |
if (!frame.video_frame_buffer()->native_handle()) { |
- output_frame_ybuffers_.push_back(frame.video_frame_buffer()->DataY()); |
+ output_frame_ybuffers_.push_back( |
+ static_cast<const VideoFrame*>(&frame)->buffer(kYPlane)); |
} |
output_frames_.push_back( |
std::unique_ptr<VideoFrame>(new VideoFrame(frame))); |
@@ -180,7 +181,8 @@ |
std::vector<const uint8_t*> ybuffer_pointers; |
for (int i = 0; i < kNumFrame; ++i) { |
input_frames_.push_back(CreateVideoFrame(static_cast<uint8_t>(i + 1))); |
- ybuffer_pointers.push_back(input_frames_[i]->video_frame_buffer()->DataY()); |
+ const VideoFrame* const_input_frame = input_frames_[i].get(); |
+ ybuffer_pointers.push_back(const_input_frame->buffer(kYPlane)); |
AddInputFrame(input_frames_[i].get()); |
WaitOutputFrame(); |
} |