#1151510 rust-gstreamer-video: error[E0308]: mismatched types expected `*mut [i32; 4]`, found `*mut i32`

#1151510#5
Date:
2026-10-21 06:56:10 UTC
From:
To:
Dear Maintainer,

My tentative rust package fails to build today, it's actually
rust-gstreamer-video that fails to build:

```
error[E0308]: mismatched types
    --> /usr/share/cargo/registry/gstreamer-video-0.25.3/src/video_format_info.rs:384:80
     |
 384 |             ffi::gst_video_format_info_component(self.to_glib_none().0, plane, comp.as_mut_ptr());
     |             ------------------------------------                               ^^^^^^^^^^^^^^^^^ expected `*mut [i32; 4]`, found `*mut i32`
     |             |
     |             arguments to this function are incorrect
     |
     = note: expected raw pointer `*mut [i32; 4]`
                found raw pointer `*mut i32`
note: function defined here
    --> /usr/share/cargo/registry/gstreamer-video-sys-0.25.4/src/lib.rs:3748:12
     |
3748 |     pub fn gst_video_format_info_component(
     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
For more information about this error, try `rustc --explain E0308`.
error: could not compile `gstreamer-video` (lib) due to 1 previous error
```

The build passed last week, and the most obvious difference I can see in
the build environment is gstreamer-video-sys
- last week it was at v0.25.3 (build passed)
- this week it's at v0.25.4 (build failing)

So I suppose rust-gstreamer-video needs to be bumper to 0.25.4 as well?
Just trying to guess.

Full link to the build log, in case it helps:
https://salsa.debian.org/arnaudr/gst-pipeline-studio/-/jobs/10515863/viewer

Thanks,

Arnaud