From: Lars Op den Kamp Date: Wed, 3 Oct 2012 14:28:09 +0000 (+0200) Subject: prevent sending directly addressed commands from being sent to broadcast X-Git-Tag: upstream/2.2.0~1^2~17^2^2~40 X-Git-Url: https://git.piment-noir.org/?p=deb_libcec.git;a=commitdiff_plain;h=a2facc35af08d8ecd8e1c0700d6f729866855897 prevent sending directly addressed commands from being sent to broadcast --- diff --git a/src/lib/devices/CECBusDevice.cpp b/src/lib/devices/CECBusDevice.cpp index 2998a62..ba34261 100644 --- a/src/lib/devices/CECBusDevice.cpp +++ b/src/lib/devices/CECBusDevice.cpp @@ -736,6 +736,9 @@ bool CCECBusDevice::TransmitVendorID(const cec_logical_address destination, bool cec_bus_device_status CCECBusDevice::GetStatus(bool bForcePoll /* = false */, bool bSuppressPoll /* = false */) { + if (m_iLogicalAddress == CECDEVICE_BROADCAST) + return CEC_DEVICE_STATUS_NOT_PRESENT; + cec_bus_device_status status(CEC_DEVICE_STATUS_UNKNOWN); bool bNeedsPoll(false);