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