diff --git a/net/rtp/src/av1/pay/imp.rs b/net/rtp/src/av1/pay/imp.rs index 804437ea9..417b68e80 100644 --- a/net/rtp/src/av1/pay/imp.rs +++ b/net/rtp/src/av1/pay/imp.rs @@ -67,7 +67,7 @@ struct ObuData { pts: Option, } -#[derive(Clone, Debug, PartialEq, Eq)] +#[derive(Clone, Debug, Default, PartialEq, Eq)] struct State { /// Holds header information and raw bytes for all received OBUs, /// as well as DTS and PTS @@ -91,18 +91,6 @@ pub struct RTPAv1Pay { state: Mutex, } -impl Default for State { - fn default() -> Self { - Self { - obus: VecDeque::new(), - open_obu_fragment: false, - last_dts: None, - last_pts: None, - framed: false, - } - } -} - impl RTPAv1Pay { fn reset(&self, state: &mut State, full: bool) { gst::debug!(CAT, imp: self, "resetting state");