-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Hold camera and mic locks while recording is active #1162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,7 +1,7 @@ | ||||||
| use crate::{ | ||||||
| RecordingBaseInputs, | ||||||
| capture_pipeline::{MakeCapturePipeline, ScreenCaptureMethod, Stop, create_screen_capture}, | ||||||
| feeds::microphone::MicrophoneFeedLock, | ||||||
| feeds::{camera::CameraFeedLock, microphone::MicrophoneFeedLock}, | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unused import:
Apply this diff to remove the unused import: - feeds::{camera::CameraFeedLock, microphone::MicrophoneFeedLock},
+ feeds::microphone::MicrophoneFeedLock,📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| output_pipeline::{self, OutputPipeline}, | ||||||
| sources::screen_capture::{ScreenCaptureConfig, ScreenCaptureTarget}, | ||||||
| }; | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion | 🟠 Major
🧩 Analysis chain
Verify that the imports are actually needed.
The imports for
CameraFeedLockandMicrophoneFeedLockare not explicitly referenced by name in the code shown (types are inferred at lines 436 and 442). These might be unused imports unless they're needed elsewhere in the file.Run the following script to check if these types are explicitly used:
🏁 Script executed:
Length of output: 182
Remove unused imports of
CameraFeedLockandMicrophoneFeedLockNeither type is referenced anywhere in
apps/desktop/src-tauri/src/recording.rs; these imports can be deleted.🤖 Prompt for AI Agents