Same for transmit core

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2487 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer 2004-03-20 05:22:52 +00:00
parent 7192fbfae7
commit 47b6495e9b
1 changed files with 1 additions and 0 deletions

1
rtp.c
View File

@ -861,6 +861,7 @@ static unsigned int calc_txstamp(struct ast_rtp *rtp, struct timeval *delivery)
unsigned int ms;
if (!rtp->txcore.tv_sec && !rtp->txcore.tv_usec) {
gettimeofday(&rtp->txcore, NULL);
rtp->txcore.tv_usec -= rtp->txcore.tv_usec % 20000;
}
if (delivery && (delivery->tv_sec || delivery->tv_usec)) {
/* Use previous txcore */