From: Lars Op den Kamp Date: Tue, 29 Nov 2011 00:58:53 +0000 (+0100) Subject: cec: don't send out system audio mode statuses when we're not an audio device X-Git-Tag: upstream/2.2.0~1^2~44^2~76 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=1b2120236aca8246e1c5fba371db99e5da3d3f0e;p=deb_libcec.git cec: don't send out system audio mode statuses when we're not an audio device --- diff --git a/src/lib/devices/CECAudioSystem.cpp b/src/lib/devices/CECAudioSystem.cpp index 3a941c6..46824fc 100644 --- a/src/lib/devices/CECAudioSystem.cpp +++ b/src/lib/devices/CECAudioSystem.cpp @@ -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)