mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-20 10:26:51 +00:00
FS-9826 reset jitter buffer if SSRC changes regardless of jitter buffer paused state
This commit is contained in:
parent
c0e3224f6e
commit
74ecc8882f
@ -5793,13 +5793,15 @@ static switch_status_t read_rtp_packet(switch_rtp_t *rtp_session, switch_size_t
|
||||
}
|
||||
}
|
||||
|
||||
if (rtp_session->jb && !rtp_session->pause_jb && jb_valid(rtp_session)) {
|
||||
|
||||
if (rtp_session->jb && jb_valid(rtp_session)) {
|
||||
if (rtp_session->last_jb_read_ssrc && rtp_session->last_jb_read_ssrc != read_ssrc) {
|
||||
switch_jb_reset(rtp_session->jb);
|
||||
}
|
||||
|
||||
rtp_session->last_jb_read_ssrc = read_ssrc;
|
||||
}
|
||||
|
||||
if (rtp_session->jb && !rtp_session->pause_jb && jb_valid(rtp_session)) {
|
||||
|
||||
if (!rtp_session->flags[SWITCH_RTP_FLAG_USE_TIMER] && rtp_session->timer.interval) {
|
||||
switch_core_timer_sync(&rtp_session->timer);
|
||||
|
Loading…
x
Reference in New Issue
Block a user