diff --git a/net/rtp/src/rtpbin2/rtprecv.rs b/net/rtp/src/rtpbin2/rtprecv.rs index d9dc2b0c0..7ff7dd2fa 100644 --- a/net/rtp/src/rtpbin2/rtprecv.rs +++ b/net/rtp/src/rtpbin2/rtprecv.rs @@ -1501,7 +1501,10 @@ impl RtpRecv { RecvRtpBuffer::SsrcCollision(ssrc) => { return self.handle_ssrc_collision(session, [ssrc]) } - RecvRtpBuffer::IsRtcp(buffer) => return Self::rtcp_sink_chain(self, id, buffer), + RecvRtpBuffer::IsRtcp(buffer) => { + drop(state); + return Self::rtcp_sink_chain(self, id, buffer); + } RecvRtpBuffer::Drop => None, RecvRtpBuffer::Forward((buffer, jb)) => Some((buffer, jb)), };