diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2023-05-30 10:20:00 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2023-05-30 10:20:00 +0300 |
commit | dfb261ac9a200f148cbadaad469c17cf288721e5 (patch) | |
tree | bea39ec309ef6ee723c752e6c21e8f5439ecdeae /generic | |
parent | 31b06e52ea988a933a1c40b6c2d4959a7b1e65fb (diff) |
Fix a couple of trivial clippy warnings
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1226>
Diffstat (limited to 'generic')
-rw-r--r-- | generic/threadshare/examples/standalone/main.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/generic/threadshare/examples/standalone/main.rs b/generic/threadshare/examples/standalone/main.rs index 54340ef4e..7498b6536 100644 --- a/generic/threadshare/examples/standalone/main.rs +++ b/generic/threadshare/examples/standalone/main.rs @@ -106,7 +106,6 @@ fn main() { let bus = pipeline.bus().unwrap(); let terminated_count = Arc::new(AtomicU32::new(0)); - let pipeline_clone = pipeline.clone(); let l_clone = l.clone(); let _bus_watch = bus .add_watch(move |_, msg| { @@ -163,11 +162,11 @@ fn main() { gst::info!(CAT, "Switching to Ready"); let stop = Instant::now(); - pipeline_clone.set_state(gst::State::Ready).unwrap(); + pipeline.set_state(gst::State::Ready).unwrap(); gst::info!(CAT, "Switching to Ready took {:.2?}", stop.elapsed()); gst::info!(CAT, "Shutting down"); let stop = Instant::now(); - pipeline_clone.set_state(gst::State::Null).unwrap(); + pipeline.set_state(gst::State::Null).unwrap(); gst::info!(CAT, "Shutting down took {:.2?}", stop.elapsed()); } |