From: Lars Op den Kamp Date: Sun, 20 Nov 2011 23:50:02 +0000 (+0100) Subject: cec: fixed SetActiveView(). the correct hdmi port will now be selected again X-Git-Tag: upstream/2.2.0~1^2~44^2~121 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=4a870dc88fafcf32178614879ca71f525a0010bb;p=deb_libcec.git cec: fixed SetActiveView(). the correct hdmi port will now be selected again --- diff --git a/src/lib/CECProcessor.cpp b/src/lib/CECProcessor.cpp index 1bcba18..a51abc7 100644 --- a/src/lib/CECProcessor.cpp +++ b/src/lib/CECProcessor.cpp @@ -312,12 +312,13 @@ bool CCECProcessor::SetActiveSource(cec_device_type type /* = CEC_DEVICE_TYPE_RE } } - return SetStreamPath(m_busDevices[addr]->GetPhysicalAddress()); + return SetStreamPath(m_busDevices[addr]->GetPhysicalAddress()) && + m_busDevices[addr]->TransmitActiveSource(); } bool CCECProcessor::SetActiveView(void) { - return SetActiveSource(); + return SetActiveSource(m_types.IsEmpty() ? CEC_DEVICE_TYPE_RESERVED : m_types[0]); } bool CCECProcessor::SetDeckControlMode(cec_deck_control_mode mode, bool bSendUpdate /* = true */)