Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

fix(capture): pass the dmabuf argument the three new tests omitted

EtienneLescot018c39098e66
diff --git a/electron/native/pipewire-capture/src/capture.rs b/electron/native/pipewire-capture/src/capture.rs
index 80d63758e..fbb8aa07b 100644
--- a/electron/native/pipewire-capture/src/capture.rs
+++ b/electron/native/pipewire-capture/src/capture.rs
@@ -1225,7 +1225,7 @@ mod tests {
// must hold that privacy boundary — the staged picture freezes.
let output = std::env::temp_dir().join("openscreen-capture-pause-stage.mp4");
let (mut capture, _) =
- Capture::start(&output, 320, 240, 30, Some(1_000_000), Some(Backend::Software), Vec::new())
+ Capture::start(&output, 320, 240, 30, Some(1_000_000), Some(Backend::Software), Vec::new(), None)
.expect("start");
// Pause BEFORE any frame is staged, then a frame arrives during the pause.
@@ -1253,7 +1253,7 @@ mod tests {
// both safe and required while paused.
let output = std::env::temp_dir().join("openscreen-capture-pause-finish.mp4");
let (mut capture, _) =
- Capture::start(&output, 320, 240, 60, Some(1_000_000), Some(Backend::Software), Vec::new())
+ Capture::start(&output, 320, 240, 60, Some(1_000_000), Some(Backend::Software), Vec::new(), None)
.expect("start");
capture
.stage(&frame(320, 240, shim::constants().video_format_bgrx))
@@ -1288,7 +1288,7 @@ mod tests {
// keeps duration ~= elapsed, and the wall-clock telemetry agrees with it.
let output = std::env::temp_dir().join("openscreen-capture-sparse.mp4");
let (mut capture, _) =
- Capture::start(&output, 320, 240, 60, Some(1_000_000), Some(Backend::Software), Vec::new())
+ Capture::start(&output, 320, 240, 60, Some(1_000_000), Some(Backend::Software), Vec::new(), None)
.expect("start");
capture
.stage(&frame(320, 240, shim::constants().video_format_bgrx))