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

Fix crash at startup when all playback devices are disabled #428

Merged
merged 1 commit into from
May 4, 2020

Conversation

mooons
Copy link

@mooons mooons commented May 4, 2020

This is a fix for issue #427

Simply uses a try-catch to check for COMException/E_NOT_SET.

The code could be simplier by removing the ErrorCode checking. But it becomes less robust that way since there might be other COMExceptions that we don't wanna ignore.

Please kindly review. :)

…nt returns Element Not Found (occurs when no playback devices are enabled).
@Belphemur
Copy link
Owner

Thanks for this, I'll have to investigate the other issue you pointed out.

Can you open a different issue just with it ?

@Belphemur Belphemur merged commit 8787acd into Belphemur:dev May 4, 2020
@mooons
Copy link
Author

mooons commented May 6, 2020

Thanks for this, I'll have to investigate the other issue you pointed out.

Can you open a different issue just with it ?

Thanks for the review and commit!

No problem I'll open a another issue for the 2nd problem I mentioned in #427 (comment).

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

Successfully merging this pull request may close these issues.

2 participants