ObjC: Remove RTCVideoFrame.nativeHandle

Access to a native buffer should be through RTCVideoFrame.buffer
instead.

BUG=webrtc:7785

Review-Url: https://codereview.webrtc.org/2990253002
Cr-Commit-Position: refs/heads/master@{#19430}
This commit is contained in:
magjed
2017-08-21 07:12:08 -07:00
committed by Commit Bot
parent 2ee432d51c
commit b0215daeb5
2 changed files with 0 additions and 12 deletions

View File

@ -83,14 +83,6 @@
return _timeStampNs;
}
- (CVPixelBufferRef)nativeHandle {
if ([_buffer isKindOfClass:[RTCCVPixelBuffer class]]) {
return ((RTCCVPixelBuffer *)_buffer).pixelBuffer;
} else {
return nullptr;
}
}
- (RTCVideoFrame *)newI420VideoFrame {
return [[RTCVideoFrame alloc] initWithBuffer:[_buffer toI420]
rotation:_rotation