mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-09-02 17:53:48 +00:00
ndi: Fix Nightly mismatched_lifetime_syntaxes lint
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/2291>
This commit is contained in:
parent
b2d6c53ac1
commit
eeb811115f
3 changed files with 4 additions and 4 deletions
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -38,7 +38,7 @@ impl NdiSrcMeta {
|
|||
pub fn add(
|
||||
buffer: &mut gst::BufferRef,
|
||||
ndi_buffer: Buffer,
|
||||
) -> 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
|
||||
|
|
Loading…
Reference in a new issue