Commit a20db61e authored by Philippe Gorley's avatar Philippe Gorley Committed by Adrien Béraud

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

This issue was traced back to the RTP sequence numbers. Skipping a few
numbers before reinitializing the sender works.

Change-Id: Ic93f1368fc7eb01b3c57341f31d3832c9f2f2c1f
parent a538de38
......@@ -116,7 +116,7 @@ void VideoRtpSession::startSender()
// be sure to not send any packets before saving last RTP seq value
if (sender_)
initSeqVal_ = sender_->getLastSeqValue() + 1;
initSeqVal_ = sender_->getLastSeqValue() + 10; // Skip a few sequences to make nvenc happy on a sender restart
try {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment