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:
3ff78be
)
[TDA995x] avoid callback when already stopped
author
Rudi
<r.ihle@s-t.de>
Thu, 9 May 2013 15:38:42 +0000
(17:38 +0200)
committer
Rudi
<r.ihle@s-t.de>
Thu, 9 May 2013 15:38:42 +0000
(17:38 +0200)
src/lib/adapter/TDA995x/TDA995xCECAdapterCommunication.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/lib/adapter/TDA995x/TDA995xCECAdapterCommunication.cpp
b/src/lib/adapter/TDA995x/TDA995xCECAdapterCommunication.cpp
index 936f31c3ee03cc5d85457254ea2374afc67f9211..d0041d9644f279ce305792775dbc1715ee4aa362 100644
(file)
--- a/
src/lib/adapter/TDA995x/TDA995xCECAdapterCommunication.cpp
+++ b/
src/lib/adapter/TDA995x/TDA995xCECAdapterCommunication.cpp
@@
-336,15
+336,16
@@
void *CTDA995xCECAdapterCommunication::Process(void)
if (frame.service == CEC_RX_PKT)
{
cec_command cmd;
-
+
cec_command::Format(
cmd, initiator, destination,
( frame.size > 3 ) ? cec_opcode(frame.data[0]) : CEC_OPCODE_NONE);
-
+
for( uint8_t i = 1; i < frame.size-3; i++ )
- cmd.parameters.PushBack(frame.data[i]);
-
- m_callback->OnCommandReceived(cmd);
+ cmd.parameters.PushBack(frame.data[i]);
+
+ if (!IsStopped())
+ m_callback->OnCommandReceived(cmd);
}
else if (frame.service == CEC_ACK_PKT)
{