Skip to content
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

mpc enable/disable toggles outputs instead of enable/disable them #1847

Closed
oliver-koch opened this issue Jan 30, 2025 · 3 comments
Closed

mpc enable/disable toggles outputs instead of enable/disable them #1847

oliver-koch opened this issue Jan 30, 2025 · 3 comments
Labels

Comments

@oliver-koch
Copy link

oliver-koch commented Jan 30, 2025

Problem Description

Enable/Disable a speakerr via mpc client toggles outputs instead of enable/disable them.
Affected Version: 28.11

root@host ~ # mpc --host 192.168.0.20 outputs
Output 1 (Speaker_01) is disabled
...
root@host ~ # mpc --host 192.168.0.20 disable 1
Output 1 (Speaker_01) is enabled
...
root@host ~ # mpc --host 192.168.0.20 disable 1
Output 1 (Speaker_01) is disabled
...
root@host ~ # mpc --host 192.168.0.20 enable 1
Output 1 (Speaker_01) is enabled
...
root@host ~ # mpc --host 192.168.0.20 enable 1
Output 1 (Speaker_01) is disabled
...

Expected Behaviour

mpc enable1 → Enables output if disabled, if already enabled do nothing.
mpc disable 1 → Disable output if enabled, if already disabled do nothing.

@oliver-koch oliver-koch changed the title mpc enable/disable toggles outputs instead of enable/disabe them mpc enable/disable toggles outputs instead of enable/disable them Jan 30, 2025
@ejurgensen
Copy link
Member

Thanks for reporting, sounds like a clear bug. There was also a speaker selection bug in version 28.10, and it could sound like my fix for it wasn't quite good.

@ejurgensen ejurgensen added the bug label Feb 1, 2025
@oliver-koch
Copy link
Author

Yes, the previous one was also reported by me. 😄
With 28.9 it works as expected.

Thanks for your great work!

@ejurgensen
Copy link
Member

Added a fix, thanks for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants