diff --git a/net/rtp/src/av1/pay/imp.rs b/net/rtp/src/av1/pay/imp.rs index 7fb3318f..f784079a 100644 --- a/net/rtp/src/av1/pay/imp.rs +++ b/net/rtp/src/av1/pay/imp.rs @@ -63,7 +63,7 @@ struct ObuData { id: u64, } -#[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 @@ -82,16 +82,6 @@ pub struct RTPAv1Pay { state: AtomicRefCell, } -impl Default for State { - fn default() -> Self { - Self { - obus: VecDeque::new(), - open_obu_fragment: false, - framed: false, - } - } -} - impl RTPAv1Pay { fn reset(&self, state: &mut State, full: bool) { gst::debug!(CAT, imp: self, "resetting state");