repositories
/
deb_libcec.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
142d1b0
)
cec: fixed - correct initiator for keypresses
author
Lars Op den Kamp
<lars@opdenkamp.eu>
Thu, 17 May 2012 10:56:08 +0000
(12:56 +0200)
committer
Lars Op den Kamp
<lars@opdenkamp.eu>
Thu, 17 May 2012 10:56:08 +0000
(12:56 +0200)
src/lib/CECClient.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/lib/CECClient.cpp
b/src/lib/CECClient.cpp
index 24f196f49287008800a01c1b88f76ff4d0463259..5b4529788487f19305da14379242bb5e4fcd82fd 100644
(file)
--- a/
src/lib/CECClient.cpp
+++ b/
src/lib/CECClient.cpp
@@
-678,21
+678,19
@@
uint8_t CCECClient::SendMuteAudio(void)
bool CCECClient::SendKeypress(const cec_logical_address iDestination, const cec_user_control_code key, bool bWait /* = true */)
{
bool CCECClient::SendKeypress(const cec_logical_address iDestination, const cec_user_control_code key, bool bWait /* = true */)
{
- CCECBusDevice *device = GetPrimaryDevice();
CCECBusDevice *dest = m_processor->GetDevice(iDestination);
CCECBusDevice *dest = m_processor->GetDevice(iDestination);
- return de
vice && de
st ?
- de
vice
->TransmitKeypress(GetPrimaryLogicalAdddress(), key, bWait) :
+ return dest ?
+ de
st
->TransmitKeypress(GetPrimaryLogicalAdddress(), key, bWait) :
false;
}
bool CCECClient::SendKeyRelease(const cec_logical_address iDestination, bool bWait /* = true */)
{
false;
}
bool CCECClient::SendKeyRelease(const cec_logical_address iDestination, bool bWait /* = true */)
{
- CCECBusDevice *device = GetPrimaryDevice();
CCECBusDevice *dest = m_processor->GetDevice(iDestination);
CCECBusDevice *dest = m_processor->GetDevice(iDestination);
- return de
vice && de
st ?
- de
vice
->TransmitKeyRelease(GetPrimaryLogicalAdddress(), bWait) :
+ return dest ?
+ de
st
->TransmitKeyRelease(GetPrimaryLogicalAdddress(), bWait) :
false;
}
false;
}