From 6e4f7931bfdf923ac1b3dc88bb3d03dc7a550dd8 Mon Sep 17 00:00:00 2001 From: Vinh Nguyen Date: Mon, 4 Aug 2025 14:27:12 +0700 Subject: [PATCH] add missing video format on Linux --- src/capturer/engine/linux/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/capturer/engine/linux/mod.rs b/src/capturer/engine/linux/mod.rs index 07967fb..2e277a2 100644 --- a/src/capturer/engine/linux/mod.rs +++ b/src/capturer/engine/linux/mod.rs @@ -158,6 +158,12 @@ fn process_callback(stream: &StreamRef, user_data: &mut ListenerUserData) { height: frame_size.height as i32, data: frame_data, })), + VideoFormat::RGBA => user_data.tx.send(Frame::RGBx(RGBxFrame { + display_time: timestamp as u64, + width: frame_size.width as i32, + height: frame_size.height as i32, + data: frame_data, + })), _ => panic!("Unsupported frame format received"), } { eprintln!("{e}");