Skip to content
Snippets Groups Projects
Commit 1dc3b17f authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#4702] Init timestamp to 0

parent 5719f70d
No related branches found
No related tags found
No related merge requests found
...@@ -242,13 +242,13 @@ void AudioRtpSession::sendMicData() ...@@ -242,13 +242,13 @@ void AudioRtpSession::sendMicData()
if (!compSize) if (!compSize)
return; return;
_timestampCount++; // _timestampCount++;
//
// Reset timestamp to make sure the timinlipg information are up to date // // Reset timestamp to make sure the timinlipg information are up to date
if (_timestampCount > RTP_TIMESTAMP_RESET_FREQ) { // if (_timestampCount > RTP_TIMESTAMP_RESET_FREQ) {
_timestamp = getCurrentTimestamp(); // _timestamp = getCurrentTimestamp();
_timestampCount = 0; // _timestampCount = 0;
} // }
// Increment timestamp for outgoing packet // Increment timestamp for outgoing packet
_timestamp += _timestampIncrement; _timestamp += _timestampIncrement;
...@@ -344,7 +344,7 @@ void AudioRtpSession::run () ...@@ -344,7 +344,7 @@ void AudioRtpSession::run ()
_debug ("AudioRtpSession: Entering mainloop for call %s",_ca->getCallId().c_str()); _debug ("AudioRtpSession: Entering mainloop for call %s",_ca->getCallId().c_str());
// Timestamp must be initialized randomly, already done when instantiating outgoing queue // Timestamp must be initialized randomly, already done when instantiating outgoing queue
_timestamp = getCurrentTimestamp(); // _timestamp = getCurrentTimestamp();
uint32 timeout = 0; uint32 timeout = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment