Skip to content

Commit eb9d3bb

Browse files
committed
address coderabbit feedback
1 parent 10dcc5a commit eb9d3bb

File tree

21 files changed

+62
-38
lines changed

21 files changed

+62
-38
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Copyright (c) 2023-present Cap Software, Inc.
22

33
Portions of this software are licensed as follows:
44

5-
- All code residing in the `cap-camera*` and `scap-* family of crates is licensed under the MIT license as defined in the LICENSE-MIT file
5+
- All code residing in the `cap-camera*` and `scap-*` families of crates is licensed under the MIT License (see LICENSE-MIT).
66
- All third party components are licensed under the original license provided by the owner of the applicable component
77
- All other content not mentioned above is available under the AGPLv3 license as defined below
88

crates/camera-avfoundation/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "cap-camera-avfoundation"
33
version = "0.1.0"
44
edition = "2024"
5+
license = "MIT"
56

67
[target.'cfg(target_os = "macos")'.dependencies]
78
cidre = { workspace = true }

crates/camera-directshow/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "cap-camera-directshow"
33
version = "0.1.0"
44
edition = "2024"
5+
license = "MIT"
56

67
[dependencies]
78
tracing.workspace = true

crates/camera-directshow/examples/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ mod windows {
1919
core::Interface,
2020
};
2121

22-
fn main() {
22+
pub fn main() {
2323
tracing_subscriber::fmt::init();
2424

2525
unsafe {

crates/camera-ffmpeg/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "cap-camera-ffmpeg"
33
version = "0.1.0"
44
edition = "2024"
5+
license = "MIT"
56

67
[dependencies]
78
ffmpeg = { workspace = true }

crates/camera-mediafoundation/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "cap-camera-mediafoundation"
33
version = "0.1.0"
44
edition = "2024"
5+
license = "MIT"
56

67
[dependencies]
78
tracing.workspace = true

crates/camera-windows/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "cap-camera-windows"
33
version = "0.1.0"
44
edition = "2024"
5+
license = "MIT"
56

67
[dependencies]
78
thiserror.workspace = true

crates/camera/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
name = "cap-camera"
33
version = "0.1.0"
44
edition = "2024"
5+
license = "MIT"
56

67
[dependencies]
7-
thiserror.workspace = true
8+
thiserror = { workspace = true }
89
serde = { workspace = true, optional = true }
910
specta = { workspace = true, optional = true }
1011

crates/cursor-capture/src/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ fn main() {
77
.relative_to_display(Display::list()[1])
88
.unwrap()
99
.normalize();
10-
// .with_crop(LogicalPosition::new(0.0, 0.0), LogicalSize::new(1.0, 1.0));
1110

1211
println!("{position:?}");
1312
}

crates/recording/examples/recording-cli.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,12 @@ pub async fn main() {
2323

2424
println!("Recording to directory '{}'", dir.path().display());
2525

26-
dbg!(
27-
list_windows()
28-
.into_iter()
29-
.map(|(v, _)| v)
30-
.collect::<Vec<_>>()
31-
);
32-
33-
return;
34-
3526
let (handle, _ready_rx) = cap_recording::spawn_studio_recording_actor(
3627
"test".to_string(),
3728
dir.path().into(),
3829
RecordingBaseInputs {
3930
capture_target: ScreenCaptureTarget::Display {
40-
id: Display::list()[1].id(),
31+
id: Display::primary().id(),
4132
},
4233
// ScreenCaptureTarget::Window {
4334
// id: Window::list()

0 commit comments

Comments
 (0)