Index: webrtc/api/java/jni/peerconnection_jni.cc |
diff --git a/webrtc/api/java/jni/peerconnection_jni.cc b/webrtc/api/java/jni/peerconnection_jni.cc |
index 2b08f751c739bc7d3992dd39ab9974d15cb5f53b..a5ba254c32461222cd9d5e35508943c16dbee40d 100644 |
--- a/webrtc/api/java/jni/peerconnection_jni.cc |
+++ b/webrtc/api/java/jni/peerconnection_jni.cc |
@@ -768,8 +768,7 @@ |
// ownership of the frame, and the frame should be released with |
// VideoRenderer.releaseNativeFrame(). |
static jlong javaShallowCopy(const cricket::VideoFrame* frame) { |
- return jlongFromPointer(new cricket::WebRtcVideoFrame( |
- frame->video_frame_buffer(), frame->rotation(), frame->timestamp_us())); |
+ return jlongFromPointer(frame->Copy()); |
} |
// Return a VideoRenderer.I420Frame referring to the data in |frame|. |