cec: fixed CCECProcessor::IsActiveSource() - TV was never checked
authorLars Op den Kamp <lars@opdenkamp.eu>
Thu, 26 Apr 2012 12:13:05 +0000 (14:13 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Thu, 26 Apr 2012 12:13:05 +0000 (14:13 +0200)
src/lib/CECProcessor.cpp

index a1603e8243a26b92cbed4d2080639eaa044fdf28..2f7fcaceaa102dcedc39902e468b63cd7979adb2 100644 (file)
@@ -933,7 +933,7 @@ cec_logical_address CCECProcessor::GetActiveSource(bool bRequestActiveSource /*
 
 bool CCECProcessor::IsActiveSource(cec_logical_address iAddress)
 {
-  return iAddress > CECDEVICE_TV && iAddress < CECDEVICE_BROADCAST ?
+  return iAddress >= CECDEVICE_TV && iAddress < CECDEVICE_BROADCAST ?
     m_busDevices[iAddress]->IsActiveSource() :
     false;
 }