From 013a5800641019c87dac68be4fbc4ab07c1109c1 Mon Sep 17 00:00:00 2001 From: magjed Date: Sun, 26 Jul 2015 04:25:08 -0700 Subject: [PATCH] VideoCapturerAndroid: Revert elapsedRealtimeNanos to elapsedRealtime Review URL: https://codereview.webrtc.org/1254143002 Cr-Commit-Position: refs/heads/master@{#9637} --- talk/app/webrtc/java/src/org/webrtc/VideoCapturerAndroid.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/talk/app/webrtc/java/src/org/webrtc/VideoCapturerAndroid.java b/talk/app/webrtc/java/src/org/webrtc/VideoCapturerAndroid.java index 8976ad25b6..d1e45701b3 100644 --- a/talk/app/webrtc/java/src/org/webrtc/VideoCapturerAndroid.java +++ b/talk/app/webrtc/java/src/org/webrtc/VideoCapturerAndroid.java @@ -805,7 +805,8 @@ public class VideoCapturerAndroid extends VideoCapturer implements PreviewCallba throw new RuntimeException("Unexpected camera in callback!"); } - final long captureTimeNs = SystemClock.elapsedRealtimeNanos(); + final long captureTimeNs = + TimeUnit.MILLISECONDS.toNanos(SystemClock.elapsedRealtime()); captureBuffersCount += videoBuffers.numCaptureBuffersAvailable(); int rotation = getDeviceOrientation();