mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
video_rtp_session: skip packets on sender restart
When using nvenc and the media sender gets restarted, the peer's srtp decryption breaks and only gets set up correctly again after a pause and play. This issue was traced back to the RTP sequence numbers. Skipping a few numbers before reinitializing the sender works. Change-Id: Ic93f1368fc7eb01b3c57341f31d3832c9f2f2c1f
This commit is contained in:

committed by
Adrien Béraud

parent
a538de38da
commit
a20db61e18
@ -116,7 +116,7 @@ void VideoRtpSession::startSender()
|
||||
// be sure to not send any packets before saving last RTP seq value
|
||||
socketPair_->stopSendOp();
|
||||
if (sender_)
|
||||
initSeqVal_ = sender_->getLastSeqValue() + 1;
|
||||
initSeqVal_ = sender_->getLastSeqValue() + 10; // Skip a few sequences to make nvenc happy on a sender restart
|
||||
try {
|
||||
sender_.reset();
|
||||
socketPair_->stopSendOp(false);
|
||||
|
Reference in New Issue
Block a user