mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-22 17:41:05 +00:00
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:
parent
d920cb4629
commit
30b90673f5
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||||
|
|
Loading…
Reference in a new issue