File 0002-ndi-Fix-Nightly-mismatched_lifetime_syntaxes-lint.patch of Package gstreamer-plugins-rs.41072
From eeb811115f336a8ea6a9d47edd8b3408da457f87 Mon Sep 17 00:00:00 2001
From: "L. E. Segovia" <amy@centricular.com>
Date: Thu, 12 Jun 2025 18:07:10 -0300
Subject: [PATCH] ndi: Fix Nightly mismatched_lifetime_syntaxes lint
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/2291>
---
net/ndi/src/ndi.rs | 4 ++--
net/ndi/src/ndisinkmeta.rs | 2 +-
net/ndi/src/ndisrcmeta.rs | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/net/ndi/src/ndi.rs b/net/ndi/src/ndi.rs
index f12483f252..26a026ce18 100644
--- a/net/ndi/src/ndi.rs
+++ b/net/ndi/src/ndi.rs
@@ -91,7 +91,7 @@ impl FindInstance {
unsafe { NDIlib_find_wait_for_sources(self.0.as_ptr(), timeout_in_ms) }
}
- pub fn get_current_sources(&mut self) -> Vec<Source> {
+ pub fn get_current_sources(&mut self) -> Vec<Source<'_>> {
unsafe {
let mut no_sources = mem::MaybeUninit::uninit();
let sources_ptr =
@@ -402,7 +402,7 @@ pub struct SendInstance(ptr::NonNull<::std::os::raw::c_void>);
unsafe impl Send for SendInstance {}
impl SendInstance {
- pub fn builder(ndi_name: &str) -> SendBuilder {
+ pub fn builder(ndi_name: &str) -> SendBuilder<'_> {
SendBuilder {
ndi_name,
clock_video: false,
diff --git a/net/ndi/src/ndisinkmeta.rs b/net/ndi/src/ndisinkmeta.rs
index f14f174a32..dac6772a18 100644
--- a/net/ndi/src/ndisinkmeta.rs
+++ b/net/ndi/src/ndisinkmeta.rs
@@ -14,7 +14,7 @@ impl NdiSinkAudioMeta {
pub fn add(
buffer: &mut gst::BufferRef,
buffers: Vec<(gst::Buffer, gst_audio::AudioInfo, i64)>,
- ) -> gst::MetaRefMut<Self, gst::meta::Standalone> {
+ ) -> gst::MetaRefMut<'_, Self, gst::meta::Standalone> {
unsafe {
// Manually dropping because gst_buffer_add_meta() takes ownership of the
// content of the struct
diff --git a/net/ndi/src/ndisrcmeta.rs b/net/ndi/src/ndisrcmeta.rs
index 72ed6fe1a4..2287686e38 100644
--- a/net/ndi/src/ndisrcmeta.rs
+++ b/net/ndi/src/ndisrcmeta.rs
@@ -38,7 +38,7 @@ impl NdiSrcMeta {
buffer: &mut gst::BufferRef,
ndi_buffer: Buffer,
timestamp_mode: TimestampMode,
- ) -> gst::MetaRefMut<Self, gst::meta::Standalone> {
+ ) -> gst::MetaRefMut<'_, Self, gst::meta::Standalone> {
unsafe {
// Manually dropping because gst_buffer_add_meta() takes ownership of the
// content of the struct
--
GitLab