mirror of
http://www.pogo.org.uk/~mark/trx.git
synced 2024-11-24 03:15:05 +01:00
Enfore a time jump relative to the jitter buffer
Without this, use of the -j flag can easily exceed the default time jump.
This commit is contained in:
parent
a7904a4e08
commit
55d398c46c
1
rx.c
1
rx.c
@ -51,6 +51,7 @@ static RtpSession* create_rtp_recv(const char *addr_desc, const int port,
|
|||||||
rtp_session_set_connected_mode(session, FALSE);
|
rtp_session_set_connected_mode(session, FALSE);
|
||||||
rtp_session_enable_adaptive_jitter_compensation(session, TRUE);
|
rtp_session_enable_adaptive_jitter_compensation(session, TRUE);
|
||||||
rtp_session_set_jitter_compensation(session, jitter); /* ms */
|
rtp_session_set_jitter_compensation(session, jitter); /* ms */
|
||||||
|
rtp_session_set_time_jump_limit(session, jitter * 2); /* ms */
|
||||||
if (rtp_session_set_payload_type(session, 0) != 0)
|
if (rtp_session_set_payload_type(session, 0) != 0)
|
||||||
abort();
|
abort();
|
||||||
if (rtp_session_signal_connect(session, "timestamp_jump",
|
if (rtp_session_signal_connect(session, "timestamp_jump",
|
||||||
|
Loading…
Reference in New Issue
Block a user