Update I420Buffer to new VideoFrameBuffer interface
This is a follow-up cleanup for CL https://codereview.webrtc.org/2847383002/. BUG=webrtc:7632 TBR=stefan Review-Url: https://codereview.webrtc.org/2906053002 Cr-Commit-Position: refs/heads/master@{#18388}
This commit is contained in:
@ -523,8 +523,8 @@ void GtkMainWnd::VideoRenderer::OnFrame(
|
||||
const webrtc::VideoFrame& video_frame) {
|
||||
gdk_threads_enter();
|
||||
|
||||
rtc::scoped_refptr<webrtc::VideoFrameBuffer> buffer(
|
||||
video_frame.video_frame_buffer());
|
||||
rtc::scoped_refptr<webrtc::I420BufferInterface> buffer(
|
||||
video_frame.video_frame_buffer()->ToI420());
|
||||
if (video_frame.rotation() != webrtc::kVideoRotation_0) {
|
||||
buffer = webrtc::I420Buffer::Rotate(*buffer, video_frame.rotation());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user