fix build

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-04-28 12:03:44 +08:00
parent 6b1645f44d
commit e3b66af8af
4 changed files with 9 additions and 9 deletions

View File

@@ -223,12 +223,12 @@ impl InvokeUiSession for SciterHandler {
self.call("adaptSize", &make_args!());
}
fn on_rgba(&self, rgba: &scrap::ImageRgb) {
fn on_rgba(&self, rgba: &mut scrap::ImageRgb) {
VIDEO
.lock()
.unwrap()
.as_mut()
.map(|v| v.render_frame(rgba.raw).ok());
.map(|v| v.render_frame(&rgba.raw).ok());
}
fn set_peer_info(&self, pi: &PeerInfo) {