Merge pull request #3482 from fufesou/fix/flutter_texture_render

fix flutter texture render
This commit is contained in:
RustDesk 2023-03-03 16:05:41 +08:00 committed by GitHub
commit 71a8c55f98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,6 +156,7 @@ pub struct FlutterHandler {
pub type FlutterRgbaRendererPluginOnRgba = unsafe extern "C" fn(
texture_rgba: *mut c_void,
buffer: *const u8,
len: c_int,
width: c_int,
height: c_int,
dst_rgba_stride: c_int,
@ -219,6 +220,7 @@ impl VideoRenderer {
func(
self.ptr as _,
rgba.as_ptr() as _,
rgba.len() as _,
self.width as _,
self.height as _,
crate::DST_STRIDE_RGBA as _,