repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
win32: resolve condition methods at runtime
[deb_libcec.git]
/
src
/
lib
/
implementations
/
CECCommandHandler.cpp
diff --git
a/src/lib/implementations/CECCommandHandler.cpp
b/src/lib/implementations/CECCommandHandler.cpp
index 66bdfbd10b509f150df19d8a648024519c08767d..331315d77e7870f6a9e46a9058c5773dc166c5fd 100644
(file)
--- a/
src/lib/implementations/CECCommandHandler.cpp
+++ b/
src/lib/implementations/CECCommandHandler.cpp
@@
-959,12
+959,11
@@
bool CCECCommandHandler::Transmit(cec_command &command, bool bExpectResponse /*
while (!bReturn && ++iTries <= iMaxTries)
{
m_expectedResponse = expectedResponse;
while (!bReturn && ++iTries <= iMaxTries)
{
m_expectedResponse = expectedResponse;
- if (
m_processor->Transmit(command)
)
+ if (
(bReturn = m_processor->Transmit(command)) == true
)
{
CLibCEC::AddLog(CEC_LOG_DEBUG, "command transmitted");
{
CLibCEC::AddLog(CEC_LOG_DEBUG, "command transmitted");
- bReturn = bExpectResponse ?
- m_condition.Wait(m_receiveMutex, m_iTransmitWait) :
- true;
+ if (bExpectResponse)
+ bReturn = m_condition.Wait(m_receiveMutex, m_iTransmitWait);
}
}
--m_iUseCounter;
}
}
--m_iUseCounter;