mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-22 19:41:00 +00:00
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:
parent
271b583876
commit
cd4b90fef4
1 changed files with 0 additions and 4 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue