examples: d3d11videosink: Fix compiler warning about unused closure parameter

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1506>
This commit is contained in:
Sebastian Dröge 2024-08-19 09:58:16 +03:00 committed by Backport Bot
parent d920cb4629
commit 30b90673f5

View file

@ -304,7 +304,7 @@ fn main() -> Result<()> {
// Add pad probe to calculate framerate // Add pad probe to calculate framerate
let sinkpad = videosink.static_pad("sink").unwrap(); let sinkpad = videosink.static_pad("sink").unwrap();
let overlay_context_weak = Arc::downgrade(&overlay_context); let overlay_context_weak = Arc::downgrade(&overlay_context);
sinkpad.add_probe(gst::PadProbeType::BUFFER, move |_, probe_info| { sinkpad.add_probe(gst::PadProbeType::BUFFER, move |_pad, _probe_info| {
let overlay_context = overlay_context_weak.upgrade().unwrap(); let overlay_context = overlay_context_weak.upgrade().unwrap();
let mut context = overlay_context.lock().unwrap(); let mut context = overlay_context.lock().unwrap();
context.timestamp_queue.push_back(SystemTime::now()); context.timestamp_queue.push_back(SystemTime::now());