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:
parent
6af94b4263
commit
1641290984
1 changed files with 1 additions and 0 deletions
1
rtp.c
1
rtp.c
|
@ -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 */
|
||||
|
|
Reference in a new issue