mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-02-17 05:15:14 +00:00
Fix/silence some clippy warnings
This commit is contained in:
parent
800d3435eb
commit
bb6ec76951
2 changed files with 2 additions and 1 deletions
|
@ -38,6 +38,7 @@ fn is_specialna(cc_data: u16) -> bool {
|
||||||
0x1130 == (0x7770 & cc_data)
|
0x1130 == (0x7770 & cc_data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::trivially_copy_pass_by_ref)]
|
||||||
fn eia608_from_utf8_1(c: &[u8; 5]) -> u16 {
|
fn eia608_from_utf8_1(c: &[u8; 5]) -> u16 {
|
||||||
assert!(c[4] == 0);
|
assert!(c[4] == 0);
|
||||||
unsafe { ffi::eia608_from_utf8_1(c.as_ptr() as *const _, 0) }
|
unsafe { ffi::eia608_from_utf8_1(c.as_ptr() as *const _, 0) }
|
||||||
|
|
|
@ -322,7 +322,7 @@ fn csound_filter_caps_negotiation() {
|
||||||
// also passing the csd score to the filter element
|
// also passing the csd score to the filter element
|
||||||
let mut h = build_harness(
|
let mut h = build_harness(
|
||||||
src_caps,
|
src_caps,
|
||||||
sink_caps.clone(),
|
sink_caps,
|
||||||
// creates a csd score that defines the input and output formats on the csound side
|
// creates a csd score that defines the input and output formats on the csound side
|
||||||
// the output fomart would be 1 channel audio samples at 44100
|
// the output fomart would be 1 channel audio samples at 44100
|
||||||
&CSD!(ksmps, ichannels, ochannels, "ain, ain2 ins", "out ain"),
|
&CSD!(ksmps, ichannels, ochannels, "ain, ain2 ins", "out ain"),
|
||||||
|
|
Loading…
Reference in a new issue