repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cec: store all commands in the command buffer, so they can be processed by libcec...
[deb_libcec.git]
/
src
/
lib
/
implementations
/
CECCommandHandler.cpp
diff --git
a/src/lib/implementations/CECCommandHandler.cpp
b/src/lib/implementations/CECCommandHandler.cpp
index f321a70889e71052999cd2db93cdf9e1c08a5ec7..0607acd4573f89a4874bd3ceaa92967aac6c1355 100644
(file)
--- a/
src/lib/implementations/CECCommandHandler.cpp
+++ b/
src/lib/implementations/CECCommandHandler.cpp
@@
-93,6
+93,8
@@
bool CCECCommandHandler::HandleCommand(const cec_command &command)
bHandled = false;
break;
}
bHandled = false;
break;
}
+
+ m_busDevice->GetProcessor()->AddCommand(command);
}
else if (command.destination == CECDEVICE_BROADCAST)
{
}
else if (command.destination == CECDEVICE_BROADCAST)
{
@@
-122,6
+124,8
@@
bool CCECCommandHandler::HandleCommand(const cec_command &command)
bHandled = false;
break;
}
bHandled = false;
break;
}
+
+ m_busDevice->GetProcessor()->AddCommand(command);
}
else
{
}
else
{
@@
-318,7
+322,9
@@
bool CCECCommandHandler::HandleUserControlRelease(const cec_command &command)
void CCECCommandHandler::UnhandledCommand(const cec_command &command)
{
void CCECCommandHandler::UnhandledCommand(const cec_command &command)
{
- m_busDevice->GetProcessor()->AddCommand(command);
+ CStdString strLog;
+ strLog.Format("unhandled command with opcode %02x from address %d", command.opcode, command.initiator);
+ m_busDevice->AddLog(CEC_LOG_DEBUG, strLog);
}
CCECBusDevice *CCECCommandHandler::GetDevice(cec_logical_address iLogicalAddress) const
}
CCECBusDevice *CCECCommandHandler::GetDevice(cec_logical_address iLogicalAddress) const