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