aboutsummaryrefslogtreecommitdiffstats
path: root/src/trau
diff options
context:
space:
mode:
authorJean-Francois Dionne <jf.dionne@nutaq.com>2017-03-06 13:22:37 -0500
committerHarald Welte <laforge@gnumonks.org>2017-03-29 13:40:22 +0000
commit5e87fdfcabc9cabe0025d7350b7ab31cdc4b6fa3 (patch)
tree62cecf66e58e74add610549aaf2b8661e02f4e4f /src/trau
parentc42bf19cc5ebb7b675fc14b57a8e3946cbeb5e60 (diff)
Fix RTP jitter buffer that never stop to increase.
Duration passed to osmo_rtp_send_frame_ext function is based on the last frame and the current one. Duration must then be added to the timestamp before being transmitted. Change-Id: I0593d6530c097cca34125a0ae2dd1b019b4dd80d
Diffstat (limited to 'src/trau')
-rw-r--r--src/trau/osmo_ortp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/trau/osmo_ortp.c b/src/trau/osmo_ortp.c
index 141065e..4e9df56 100644
--- a/src/trau/osmo_ortp.c
+++ b/src/trau/osmo_ortp.c
@@ -467,9 +467,9 @@ int osmo_rtp_send_frame_ext(struct osmo_rtp_socket *rs, const uint8_t *payload,
return -ENOMEM;
rtp_set_markbit(mblk, marker);
+ rs->tx_timestamp += duration;
rc = rtp_session_sendm_with_ts(rs->sess, mblk,
rs->tx_timestamp);
- rs->tx_timestamp += duration;
if (rc < 0) {
/* no need to free() the mblk, as rtp_session_rtp_send()
* unconditionally free()s the mblk even in case of