Index: webrtc/api/android/jni/peerconnection_jni.cc |
diff --git a/webrtc/api/android/jni/peerconnection_jni.cc b/webrtc/api/android/jni/peerconnection_jni.cc |
index 9efe037c9ff2d036976dce06c2e8029ff146a696..5095b152ba0947af8eb45e1b5e36248299f20fff 100644 |
--- a/webrtc/api/android/jni/peerconnection_jni.cc |
+++ b/webrtc/api/android/jni/peerconnection_jni.cc |
@@ -770,7 +770,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|. |