mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-02-16 21:05:15 +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)]
|
#[derive(Debug)]
|
||||||
struct DecodingInfo {
|
struct DecodingInfo {
|
||||||
has_decoder: AtomicBool,
|
has_decoder: AtomicBool,
|
||||||
decoders: Vec<gst::ElementFactory>,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Clone for DecodingInfo {
|
impl Clone for DecodingInfo {
|
||||||
fn clone(&self) -> Self {
|
fn clone(&self) -> Self {
|
||||||
Self {
|
Self {
|
||||||
has_decoder: AtomicBool::new(self.has_decoder.load(Ordering::SeqCst)),
|
has_decoder: AtomicBool::new(self.has_decoder.load(Ordering::SeqCst)),
|
||||||
decoders: self.decoders.clone(),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -177,7 +175,6 @@ impl Codec {
|
||||||
|
|
||||||
decoding_info: Some(DecodingInfo {
|
decoding_info: Some(DecodingInfo {
|
||||||
has_decoder: AtomicBool::new(has_decoder),
|
has_decoder: AtomicBool::new(has_decoder),
|
||||||
decoders: decoders.iter().cloned().collect(),
|
|
||||||
}),
|
}),
|
||||||
|
|
||||||
encoding_info,
|
encoding_info,
|
||||||
|
@ -208,7 +205,6 @@ impl Codec {
|
||||||
|
|
||||||
decoding_info: Some(DecodingInfo {
|
decoding_info: Some(DecodingInfo {
|
||||||
has_decoder: AtomicBool::new(has_decoder),
|
has_decoder: AtomicBool::new(has_decoder),
|
||||||
decoders: decoders.iter().cloned().collect(),
|
|
||||||
}),
|
}),
|
||||||
|
|
||||||
encoding_info: None,
|
encoding_info: None,
|
||||||
|
|
Loading…
Reference in a new issue