cec: don't send out system audio mode statuses when we're not an audio device
[deb_libcec.git] / src / lib / devices / CECAudioSystem.cpp
index 3a941c6ff7967a1e2376e46ed1899ffcb803062d..46824fc538836e824ebecf5005e3df554c120892 100644 (file)
@@ -84,7 +84,9 @@ bool CCECAudioSystem::SetSystemAudioMode(const cec_command &command)
     CEC_SYSTEM_AUDIO_STATUS_OFF :
   CEC_SYSTEM_AUDIO_STATUS_ON);
 
-  return TransmitAudioStatus(command.initiator);
+  if (MyLogicalAddressContains(m_iLogicalAddress))
+    return TransmitAudioStatus(command.initiator);
+  return true;
 }
 
 bool CCECAudioSystem::TransmitAudioStatus(cec_logical_address dest)