From cd4b90fef418e716da0a450b7a6b2126f6da3b20 Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Wed, 7 Jun 2023 18:37:18 +0200 Subject: [PATCH] webrtcsink/utils: remove unused decoders field in DecodingInfo Part-of: --- net/webrtc/src/utils.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/net/webrtc/src/utils.rs b/net/webrtc/src/utils.rs index e92e9a15..14d89bca 100644 --- a/net/webrtc/src/utils.rs +++ b/net/webrtc/src/utils.rs @@ -116,14 +116,12 @@ pub fn make_element(element: &str, name: Option<&str>) -> Result, } impl Clone for DecodingInfo { fn clone(&self) -> Self { Self { has_decoder: AtomicBool::new(self.has_decoder.load(Ordering::SeqCst)), - decoders: self.decoders.clone(), } } } @@ -177,7 +175,6 @@ impl Codec { decoding_info: Some(DecodingInfo { has_decoder: AtomicBool::new(has_decoder), - decoders: decoders.iter().cloned().collect(), }), encoding_info, @@ -208,7 +205,6 @@ impl Codec { decoding_info: Some(DecodingInfo { has_decoder: AtomicBool::new(has_decoder), - decoders: decoders.iter().cloned().collect(), }), encoding_info: None,