Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

refactor(cli): use MicrophoneFeed list_names in targets command

Richie McIlroy00c9bed6a8bc
diff --git a/apps/cli/src/targets.rs b/apps/cli/src/targets.rs
index 445aa4dbf..c709c0809 100644
--- a/apps/cli/src/targets.rs
+++ b/apps/cli/src/targets.rs
@@ -139,8 +139,8 @@ pub fn cameras() -> Vec<CameraTarget> {
}
pub fn mics() -> Vec<MicTarget> {
- cap_recording::MicrophoneFeed::list()
- .into_keys()
+ cap_recording::MicrophoneFeed::list_names()
+ .into_iter()
.enumerate()
.map(|(index, name)| MicTarget { index, name })
.collect()