Fix timestamp mark

Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
camera2
Leo Ma 9 years ago
parent 0e2e7e5e80
commit cc08c9f399

@ -50,8 +50,10 @@ public class ChunkStreamInfo {
/** Utility method for calculating & synchronizing transmitted timestamps & timestamp deltas */
public long markRealAbsoluteTimestampTx() {
realLastTimestamp = System.nanoTime() / 1000 - realLastTimestamp;
return realLastTimestamp;
long currentTimestamp = System.nanoTime() / 1000;
long diffTimestamp = currentTimestamp - realLastTimestamp;
realLastTimestamp = currentTimestamp;
return diffTimestamp;
}
/** @return <code>true</code> if all packet data has been stored, or <code>false</code> if not */

@ -121,7 +121,7 @@ public class RtmpConnection implements RtmpPublisher, PacketRxHandler {
if (connecting) {
synchronized (connectingLock) {
try {
connectingLock.wait();
connectingLock.wait(5000);
} catch (InterruptedException ex) {
// do nothing
}

Loading…
Cancel
Save