aboutsummaryrefslogtreecommitdiffstats
path: root/rtp.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-03-20 05:22:52 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-03-20 05:22:52 +0000
commit164129098425beadef668f7f87696e905134f54b (patch)
tree77bd85009a958129b99db438eda0d54ebdfc5aa4 /rtp.c
parent6af94b4263f18e260011f007e0ba21ac14347244 (diff)
Same for transmit core
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2487 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'rtp.c')
-rwxr-xr-xrtp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rtp.c b/rtp.c
index 50ec19acb..5ebaf582e 100755
--- a/rtp.c
+++ b/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 */