repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cec: also add commands to unsupported features when receiving CEC_ABORT_REASON_REFUSED
[deb_libcec.git]
/
src
/
lib
/
implementations
/
ANCommandHandler.cpp
diff --git
a/src/lib/implementations/ANCommandHandler.cpp
b/src/lib/implementations/ANCommandHandler.cpp
index 596bcf8e2b94e272eb762270d1615e3b83f0d2e6..f8a8ade3c421aa12d00f781b03978eb1706dc9ba 100644
(file)
--- a/
src/lib/implementations/ANCommandHandler.cpp
+++ b/
src/lib/implementations/ANCommandHandler.cpp
@@
-46,7
+46,7
@@
CANCommandHandler::CANCommandHandler(CCECBusDevice *busDevice) :
bool CANCommandHandler::HandleVendorRemoteButtonDown(const cec_command &command)
{
bool CANCommandHandler::HandleVendorRemoteButtonDown(const cec_command &command)
{
- if (m_processor->Is
Started
() && command.parameters.size > 0)
+ if (m_processor->Is
Running
() && command.parameters.size > 0)
{
cec_keypress key;
key.duration = CEC_BUTTON_TIMEOUT;
{
cec_keypress key;
key.duration = CEC_BUTTON_TIMEOUT;
@@
-54,8
+54,10
@@
bool CANCommandHandler::HandleVendorRemoteButtonDown(const cec_command &command)
switch (command.parameters[0])
{
switch (command.parameters[0])
{
- case CEC_AN_USER_CONTROL_CODE_RETURN:
- key.keycode = CEC_USER_CONTROL_CODE_EXIT;
+ case CEC_USER_CONTROL_CODE_AN_RETURN:
+ key.keycode = m_processor->GetClientVersion() >= CEC_CLIENT_VERSION_1_5_0 ?
+ CEC_USER_CONTROL_CODE_AN_RETURN :
+ CEC_USER_CONTROL_CODE_EXIT;
break;
default:
break;
break;
default:
break;