mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-24 02:50:34 +00:00
csound: Fix cast to f64 so it builds in i586
For some reason (compiler bug?), the rust compiler fails to compare u32 and f64 types when doing a wildcard cast on i586 with the following error: error[E0282]: type annotations needed --> audio/csound/src/filter/imp.rs:611:47 | 611 | if rate != out_info.rate() || rate != csound.get_sample_rate() as _ { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type | = note: type must be known at this point Using an explicit cast solves the issue.
This commit is contained in:
parent
61214b5788
commit
e0b577fe1d
1 changed files with 1 additions and 1 deletions
|
@ -608,7 +608,7 @@ impl BaseTransformImpl for CsoundFilter {
|
|||
let rate = in_info.rate();
|
||||
|
||||
// Check if the negotiated caps are the right ones
|
||||
if rate != out_info.rate() || rate != csound.get_sample_rate() as _ {
|
||||
if rate != out_info.rate() || rate != csound.get_sample_rate() as u32 {
|
||||
return Err(loggable_error!(
|
||||
CAT,
|
||||
"Failed to negotiate caps: invalid sample rate {}",
|
||||
|
|
Loading…
Reference in a new issue