Archived
14
0
Fork 0

Same for transmit core

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2487 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
markster 2004-03-20 05:22:52 +00:00
parent 6af94b4263
commit 1641290984

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 */