mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-18 18:58:22 +00:00
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:
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 New Issue
Block a user