mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-26 13:31:00 +00:00
ndi: Silence some more clippy warnings
This commit is contained in:
parent
db8037d16c
commit
0a2e6e47c9
3 changed files with 9 additions and 3 deletions
|
@ -168,6 +168,7 @@ impl ElementImpl for NdiSink {
|
|||
PAD_TEMPLATES.as_ref()
|
||||
}
|
||||
|
||||
#[allow(clippy::single_match)]
|
||||
fn change_state(
|
||||
&self,
|
||||
transition: gst::StateChange,
|
||||
|
|
|
@ -1,6 +1,12 @@
|
|||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
|
||||
#![allow(
|
||||
non_camel_case_types,
|
||||
non_upper_case_globals,
|
||||
non_snake_case,
|
||||
clippy::upper_case_acronyms,
|
||||
clippy::missing_safety_doc
|
||||
)]
|
||||
|
||||
#[cfg(unix)]
|
||||
use libloading::os::unix::{Library, Symbol};
|
||||
|
@ -16,6 +22,7 @@ const LIBRARY_NAME: &str = "libndi.so.5";
|
|||
#[cfg(target_os = "macos")]
|
||||
const LIBRARY_NAME: &str = "libndi.dylib";
|
||||
|
||||
#[allow(clippy::type_complexity)]
|
||||
struct FFI {
|
||||
_library: Library,
|
||||
initialize: Symbol<fn() -> bool>,
|
||||
|
|
|
@ -1604,8 +1604,6 @@ impl Receiver {
|
|||
|
||||
#[cfg(feature = "advanced-sdk")]
|
||||
if [NDIlib_FourCC_audio_type_AAC].contains(&fourcc) {
|
||||
use std::convert::TryInto;
|
||||
|
||||
let compressed_packet = audio_frame.compressed_packet().ok_or_else(|| {
|
||||
error!(
|
||||
CAT,
|
||||
|
|
Loading…
Reference in a new issue