prevent sending directly addressed commands from being sent to broadcast
authorLars Op den Kamp <lars@opdenkamp.eu>
Wed, 3 Oct 2012 14:28:09 +0000 (16:28 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Wed, 3 Oct 2012 14:28:09 +0000 (16:28 +0200)
src/lib/devices/CECBusDevice.cpp

index 2998a622021786c7e3e9ba162870f1b92aa45373..ba34261a1c1d1590249172ffce8f09c145c87394 100644 (file)
@@ -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);