teltek / gst-plugin-ndi

GStreamer NDI Plugin for Linux
GNU Lesser General Public License v2.1
154 stars 27 forks source link

Rpi4 Build Error : error[E0308]: mismatched types #88

Closed goodsw4all closed 2 years ago

goodsw4all commented 2 years ago

Hi, first of all, Thanks for your work

Board : Rpi4 OS: Release date: October 30th 2021 Kernel version: 5.10

I ran into this error while building. I simply changed the type and built successfully. but, I don't know anything about Rust. Is it okay?

error[E0308]: mismatched types --> src/ndi.rs:807:21 807 p_data: frame.plane_data(0).unwrap().as_ptr() as *const i8, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected u8, found i8
= note: expected raw pointer `*const u8`
           found raw pointer `*const i8`

For more information about this error, try rustc --explain E0308. error: could not compile gst-plugin-ndi due to previous error

sdroege commented 2 years ago

That's fixed by https://github.com/teltek/gst-plugin-ndi/pull/84

goodsw4all commented 2 years ago

I got it, thanks a lot.