diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2021-11-30 17:31:50 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2021-11-30 17:31:50 +0300 |
commit | c46901d150b91f2d0a59f4484945389660d65ef8 (patch) | |
tree | fe315da71825c4c5084f0d56a7deae9453a05a17 /utils/uriplaylistbin/src | |
parent | f02322bd806f2690becb9c4919be59e0e95e5b3a (diff) |
Fix or silence various new 1.57 clippy warnings
Diffstat (limited to 'utils/uriplaylistbin/src')
-rw-r--r-- | utils/uriplaylistbin/src/uriplaylistbin/imp.rs | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/utils/uriplaylistbin/src/uriplaylistbin/imp.rs b/utils/uriplaylistbin/src/uriplaylistbin/imp.rs index 906cf524..142de04e 100644 --- a/utils/uriplaylistbin/src/uriplaylistbin/imp.rs +++ b/utils/uriplaylistbin/src/uriplaylistbin/imp.rs @@ -57,23 +57,13 @@ impl std::error::Error for PlaylistError { } /// Number of different streams currently handled by the element -#[derive(Debug, Clone, PartialEq)] +#[derive(Debug, Default, Clone, PartialEq)] struct StreamsTopology { audio: u32, video: u32, text: u32, } -impl Default for StreamsTopology { - fn default() -> Self { - Self { - audio: 0, - video: 0, - text: 0, - } - } -} - impl StreamsTopology { fn n_streams(&self) -> u32 { self.audio + self.video + self.text @@ -246,7 +236,6 @@ enum ItemState { stream_selected_msg: Option<gst::Message>, concat_sink_pads: Vec<(gst::Element, gst::Pad)>, sender: crossbeam_channel::Sender<bool>, - receiver: crossbeam_channel::Receiver<bool>, }, /// Buffers are flowing Streaming { @@ -544,7 +533,6 @@ impl Item { ItemState::WaitingForPads { uridecodebin, sender, - receiver, stream_collection_msg, concat_sink_pads, .. @@ -552,7 +540,6 @@ impl Item { inner.state = ItemState::Blocked { uridecodebin: uridecodebin.clone(), sender: sender.clone(), - receiver: receiver.clone(), concat_sink_pads: concat_sink_pads.clone(), stream_collection_msg: stream_collection_msg.copy(), stream_selected_msg: None, |