examples: d3d11videosink: Fix compiler warning about unused closure parameter

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1499>
This commit is contained in:
Sebastian Dröge 2024-08-19 09:58:16 +03:00
parent 44479cf42a
commit 09bc0a2836

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());