Skip to content

Commit

Permalink
Fix computation of microphone_enabled when "on:device" flag is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
Behnam Momeni committed Sep 11, 2023
1 parent bddfdd3 commit 3aebb0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xpra/client/mixins/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def nooptions(*_args) -> tuple[str,...]:
if not self.microphone_codecs:
self.microphone_allowed = False
self.speaker_enabled = self.speaker_allowed and audio_option(opts.speaker)=="on"
self.microphone_enabled = self.microphone_allowed and opts.microphone.lower()=="on"
self.microphone_enabled = self.microphone_allowed and audio_option(mic[0])=="on"
log("speaker: codecs=%s, allowed=%s, enabled=%s", encoders, self.speaker_allowed, csv(self.speaker_codecs))
log("microphone: codecs=%s, allowed=%s, enabled=%s, default device=%s",
decoders, self.microphone_allowed, csv(self.microphone_codecs), self.microphone_device)
Expand Down

0 comments on commit 3aebb0c

Please sign in to comment.