X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=ortp_recv.c;h=4df8e3a5af040521c8c8fd38fed97a22e042382b;hp=582450901d9cf0c3cc8e762daeaff518e384cce7;hb=dd172e4c54a6368087b183fd7d821862b038ea5f;hpb=548dc9e5c82f891637968d3e0f5b4fa3d16a8405 diff --git a/ortp_recv.c b/ortp_recv.c index 58245090..4df8e3a5 100644 --- a/ortp_recv.c +++ b/ortp_recv.c @@ -256,8 +256,11 @@ static int ortp_recv_open(struct receiver_node *rn) PARA_NOTICE_LOG("receiving from %s:%d\n", conf->host_arg, conf->port_arg); rtp_session_set_local_addr(pord->session, conf->host_arg, conf->port_arg); rtp_session_set_payload_type(pord->session, PAYLOAD_AUDIO_CONTINUOUS); - rtp_session_enable_adaptive_jitter_compensation(pord->session, TRUE); - rtp_session_set_jitter_compensation(pord->session, 40); + if (conf->jitter_compensation_arg) { + rtp_session_enable_adaptive_jitter_compensation(pord->session, TRUE); + rtp_session_set_jitter_compensation(pord->session, + conf->jitter_compensation_arg); + } return 1; }