repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cec: use boost::shared_ptr for messages
[deb_libcec.git]
/
src
/
lib
/
CECProcessor.cpp
diff --git
a/src/lib/CECProcessor.cpp
b/src/lib/CECProcessor.cpp
index 7e8af29c0a88abce63037bb29e2e614f5e5133f5..73cae64b04ca0ba139b4b89a5ec40711a0f663a3 100644
(file)
--- a/
src/lib/CECProcessor.cpp
+++ b/
src/lib/CECProcessor.cpp
@@
-186,7
+186,7
@@
bool CCECProcessor::Transmit(const cec_command &data, bool bWaitForAck /* = true
bool bReturn(false);
LogOutput(data);
bool bReturn(false);
LogOutput(data);
- CCECAdapterMessage
output(data
);
+ CCECAdapterMessage
Ptr output(new CCECAdapterMessage(data)
);
CLockObject lock(&m_mutex);
if (!m_communication || !m_communication->Write(output))
CLockObject lock(&m_mutex);
if (!m_communication || !m_communication->Write(output))
@@
-195,7
+195,7
@@
bool CCECProcessor::Transmit(const cec_command &data, bool bWaitForAck /* = true
if (bWaitForAck)
{
bool bError(false);
if (bWaitForAck)
{
bool bError(false);
- if ((bReturn = WaitForAck(&bError, output
.
size(), 1000)) == false)
+ if ((bReturn = WaitForAck(&bError, output
->
size(), 1000)) == false)
m_controller->AddLog(CEC_LOG_ERROR, "did not receive ack");
}
else
m_controller->AddLog(CEC_LOG_ERROR, "did not receive ack");
}
else