Fix CVO in androidvideocapturer.
This add bool apply_rotation to WebrtcVideoFrame::Init and removes the need for WebrtcVideoFrame::SetRotation. BUG=4145 R=guoweis@webrtc.org, pthatcher@webrtc.org Review URL: https://webrtc-codereview.appspot.com/40759004 Cr-Commit-Position: refs/heads/master@{#8536} git-svn-id: http://webrtc.googlecode.com/svn/trunk@8536 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@@ -85,7 +85,7 @@ class AndroidVideoCapturer::FrameFactory : public cricket::VideoFrameFactory {
|
||||
// Check that captured_frame is actually our frame.
|
||||
DCHECK(captured_frame == &captured_frame_);
|
||||
scoped_ptr<WebRtcVideoFrame> frame(new WebRtcVideoFrame());
|
||||
frame->Init(captured_frame, dst_width, dst_height);
|
||||
frame->Init(captured_frame, dst_width, dst_height, apply_rotation_);
|
||||
return frame.release();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user