[PATCH] RTP: Allow disabling jitter buffer by setting a buffer size of 0

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Andreas Eversberg jolly at eversberg.eu
Thu Feb 14 10:03:26 UTC 2013


---
 src/trau/osmo_ortp.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/trau/osmo_ortp.c b/src/trau/osmo_ortp.c
index a9503ea..6d3db58 100644
--- a/src/trau/osmo_ortp.c
+++ b/src/trau/osmo_ortp.c
@@ -258,7 +258,10 @@ int osmo_rtp_socket_set_param(struct osmo_rtp_socket *rs,
 
 	switch (param) {
 	case OSMO_RTP_P_JITBUF:
-		rtp_session_set_jitter_compensation(rs->sess, val);
+		rtp_session_enable_jitter_buffer(rs->sess,
+			(val) ? TRUE : FALSE);
+		if (val)
+			rtp_session_set_jitter_compensation(rs->sess, val);
 		break;
 #if 0
 	case OSMO_RTP_P_JIT_ADAP:
-- 
1.7.3.4


--------------090702060102080101070403--




More information about the OpenBSC mailing list