Skip to content

Commit

Permalink
Block Studio Display Mic for input-only when its Speakers are default…
Browse files Browse the repository at this point in the history
… output

The VPIO unit behaves the same when not setting an output as when
setting the default output device as output.

Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1914925.
  • Loading branch information
Pehrsons authored and padenot committed Sep 16, 2024
1 parent f7e50c2 commit 2407441
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/backend/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3323,6 +3323,7 @@ impl<'ctx> CoreStreamData<'ctx> {
.map(|id| log_device_and_get_model_uid(id, DeviceType::INPUT))
.unwrap_or_default(),
out_id
.or_else(|| get_default_device(DeviceType::OUTPUT))
.map(|id| log_device_and_get_model_uid(id, DeviceType::OUTPUT))
.unwrap_or_default(),
);
Expand Down

0 comments on commit 2407441

Please sign in to comment.