Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/CapSoftware/cap
Browse files Browse the repository at this point in the history
  • Loading branch information
richiemcilroy committed Oct 17, 2024
2 parents 1c0637b + e3655b9 commit 8479794
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions apps/desktop/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "desktop"
version = "0.3.0-beta.5.7"
version = "0.3.0-beta.5.7.1"
description = "Beautiful, shareable screen recordings."
authors = ["you"]
edition = "2021"
Expand Down Expand Up @@ -83,7 +83,7 @@ global-hotkey = "0.5.5"
[target.'cfg(target_os = "macos")'.dependencies]
core-graphics = "0.24.0"
core-foundation = "0.10.0"
nokhwa-bindings-macos = { git = "https://github.com/Brendonovich/nokhwa", rev = "2de5a760d5f1" }
nokhwa-bindings-macos = { git = "https://github.com/CapSoftware/nokhwa", branch = "brendonovich-fork" }
objc2-app-kit = { version = "0.2.2", features = ["NSWindow", "NSResponder"] }
cocoa = "0.26.0"
objc = "0.2.7"
Expand Down
11 changes: 7 additions & 4 deletions apps/desktop/src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,14 @@ impl App {
if self.camera_feed.is_none() {
self.camera_feed = CameraFeed::init(&camera_label, self.camera_tx.clone())
.await
.map_err(|error| eprintln!("{error}"))
.ok();
} else if let Some(camera_feed) = self.camera_feed.as_mut() {
camera_feed
.switch_cameras(&camera_label)
.await
.map_err(|error| eprintln!("{error}"))
.ok();
}

if let Some(camera_feed) = self.camera_feed.as_mut() {
camera_feed.switch_cameras(&camera_label).await.ok();
}
}
None => {
Expand Down

1 comment on commit 8479794

@vercel
Copy link

@vercel vercel bot commented on 8479794 Oct 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.