Index: webrtc/api/video/video_frame.h |
diff --git a/webrtc/api/video/video_frame.h b/webrtc/api/video/video_frame.h |
index 82c348d07e57a8cf64d6e91809f8e57212fba4dc..3ee381b09146ec423d47fc52da3f1fe447a350e3 100644 |
--- a/webrtc/api/video/video_frame.h |
+++ b/webrtc/api/video/video_frame.h |
@@ -98,7 +98,7 @@ class VideoFrame { |
// TODO(nisse): Deprecated. |
// Return true if the frame is stored in a texture. |
bool is_texture() const { |
- return video_frame_buffer()->native_handle() != nullptr; |
+ return video_frame_buffer()->type() == VideoFrameBuffer::Type::kNative; |
} |
private: |