diff --git a/src/client/mod.rs b/src/client/mod.rs index 6ce484c..bec07b6 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -31,7 +31,11 @@ use crate::{ mod channel_mapping; mod parse; + +/// Internal API, public for a benchmark only. +#[doc(hidden)] pub mod rtp; + mod teardown; mod timeline; @@ -2805,10 +2809,6 @@ mod tests { ("SessionOptions", std::mem::size_of::()), ("Demuxed", std::mem::size_of::()), ("Stream", std::mem::size_of::()), - ( - "rtp::SenderReport", - std::mem::size_of::(), - ), ] { println!("{:-40} {:4}", name, size); } diff --git a/src/client/rtp.rs b/src/client/rtp.rs index 2c811eb..4701bb7 100644 --- a/src/client/rtp.rs +++ b/src/client/rtp.rs @@ -13,15 +13,6 @@ use crate::{ConnectionContext, Error, ErrorInt, PacketContext, StreamContext, St use super::{SessionOptions, Timeline}; -/// An RTCP sender report. -#[derive(Debug)] -pub struct SenderReport { - pub stream_id: usize, - pub ctx: PacketContext, - pub timestamp: crate::Timestamp, - pub ntp_timestamp: crate::NtpTimestamp, -} - /// RTP/RTCP demarshaller which ensures packets have the correct SSRC and /// monotonically increasing SEQ. Unstable; exposed for benchmark. /// diff --git a/src/codec/mod.rs b/src/codec/mod.rs index 7754fbc..7010b78 100644 --- a/src/codec/mod.rs +++ b/src/codec/mod.rs @@ -591,10 +591,6 @@ mod tests { ("VideoFrame", std::mem::size_of::()), ("AudioFrame", std::mem::size_of::()), ("MessageFrame", std::mem::size_of::()), - ( - "SenderReport", - std::mem::size_of::(), - ), ("VideoParameters", std::mem::size_of::()), ("AudioParameters", std::mem::size_of::()), (