diff options
author | Jean-Francois Dionne <jf.dionne@nutaq.com> | 2017-03-06 13:22:37 -0500 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-03-29 13:40:22 +0000 |
commit | 5e87fdfcabc9cabe0025d7350b7ab31cdc4b6fa3 (patch) | |
tree | 62cecf66e58e74add610549aaf2b8661e02f4e4f /src | |
parent | c42bf19cc5ebb7b675fc14b57a8e3946cbeb5e60 (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')
-rw-r--r-- | src/trau/osmo_ortp.c | 2 |
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 |