cec: added guard so ReplaceHandler() doesn't accidently try to replace a handler...
authorLars Op den Kamp <lars@opdenkamp.eu>
Thu, 2 Aug 2012 15:47:51 +0000 (17:47 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Thu, 2 Aug 2012 15:47:51 +0000 (17:47 +0200)
src/lib/devices/CECBusDevice.cpp

index 5b3e2cb42626fc1566bd215ea407236e76c11492..466e977249159f740cbe32a53765dc1716929476 100644 (file)
@@ -95,6 +95,9 @@ CCECBusDevice::~CCECBusDevice(void)
 
 bool CCECBusDevice::ReplaceHandler(bool bActivateSource /* = true */)
 {
+  if (m_iLogicalAddress == CECDEVICE_BROADCAST)
+    return false;
+
   bool bInitHandler(false);
   {
     CLockObject lock(m_mutex);