webrtcsink/utils: remove unused decoders field in DecodingInfo

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1236>
This commit is contained in:
Mathieu Duponchelle 2023-06-07 18:37:18 +02:00
parent 271b583876
commit cd4b90fef4

View file

@ -116,14 +116,12 @@ pub fn make_element(element: &str, name: Option<&str>) -> Result<gst::Element, E
#[derive(Debug)]
struct DecodingInfo {
has_decoder: AtomicBool,
decoders: Vec<gst::ElementFactory>,
}
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,