Repository navigation
Conversation
`GetCurrentConfiguration()` never wrote `comboKey` and `iComboKeyTimeoutMs`. This is fine in C++, as `libcec_configuration` is constructed with `CEC_USER_CONTROL_CODE_STOP` and 1000ms (`cectypes.h:1687`) LibCecSharp passes a zero-filled struct, so `comboKey` came back as Select and `iComboKeyTimeoutMs` as a 0ms timeout. CECClient.cpp:1279 then refused to send the key press of the OK button, as it is considered the `comboKey`.
|
Thank you for the contribution. Before we can merge it we ask that you accept the Pulse-Eight contributor agreement, which grants us the rights we need to ship your work under every licence libCEC is offered under. I have signed the Pulse-Eight contributor agreement and sent it by email Mick seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. |
|
I'm going to be honest. Reading, understanding, and signing a pdf, and then emailing it for this pull request exceeds the quantity of fucks I have left to give, For what it's worth; I agree to let you share, distribute, relicense, or do whatever you want with this pull request and the code therein. |
|
mick the auto responder is a bit out of date, we've had for a decade, i will give it a review. thanks |
GetCurrentConfiguration()never wrotecomboKeyandiComboKeyTimeoutMs.This is fine in C++, as
libcec_configurationis constructed withCEC_USER_CONTROL_CODE_STOPand 1000ms (cectypes.h:1687)LibCecSharp passes a zero-filled struct, so
comboKeycame back as Select andiComboKeyTimeoutMsas a 0ms timeout.CECClient.cpp:1279 then refuses to send the key press of the OK button, as it is the
comboKey;The logs before this fix;
After this fix it should correctly include;
Full disclosure; I have not tested this exact fix, as I do not have the right C++ tools installed. I did, however, change LibCecTray's
CECController.csby changingto
before building this and testing it. My TV remote's OK button immediately started working, where before it didn't.
Given that this effectively patches the issue on the cec-tray side, I feel confident that this patch fixes the root issue.