From: Lars Op den Kamp Date: Thu, 26 Apr 2012 12:13:05 +0000 (+0200) Subject: cec: fixed CCECProcessor::IsActiveSource() - TV was never checked X-Git-Tag: upstream/2.2.0~1^2~29^2^2~18 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=ed80116ed77c2a7247465b39d39bc50a6bc1b190;p=deb_libcec.git cec: fixed CCECProcessor::IsActiveSource() - TV was never checked --- diff --git a/src/lib/CECProcessor.cpp b/src/lib/CECProcessor.cpp index a1603e8..2f7fcac 100644 --- a/src/lib/CECProcessor.cpp +++ b/src/lib/CECProcessor.cpp @@ -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; }