Skip to content

Commit

Permalink
prevent trying to send empty commands
Browse files Browse the repository at this point in the history
  • Loading branch information
opdenkamp committed Apr 2, 2015
1 parent 850f8b9 commit 889a52d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libcec/CECProcessor.cpp
Expand Up @@ -456,6 +456,9 @@ bool CCECProcessor::Transmit(const cec_command &data, bool bIsReply)
// reset the state of this message to 'unknown'
cec_adapter_message_state adapterState = ADAPTER_MESSAGE_STATE_UNKNOWN;

if (data.initiator == CECDEVICE_UNKNOWN && data.destination == CECDEVICE_UNKNOWN)
return false;

CLockObject lock(m_mutex);
if (!m_communication)
return false;
Expand Down

0 comments on commit 889a52d

Please sign in to comment.