cec: handle image view on and text view on
[deb_libcec.git] / src / lib / CECProcessor.cpp
index e43d298fba3ddfac53c5639580d04be61af34daa..27bf5bb640714938fd798f2912e8063569267534 100644 (file)
@@ -305,6 +305,11 @@ bool CCECProcessor::SetActiveSource(cec_device_type type /* = CEC_DEVICE_TYPE_RE
       m_busDevices[addr]->TransmitActiveSource();
 }
 
+bool CCECProcessor::SetActiveSource(cec_logical_address iAddress)
+{
+  return SetStreamPath(m_busDevices[iAddress]->GetPhysicalAddress());
+}
+
 bool CCECProcessor::SetActiveView(void)
 {
   return SetActiveSource(m_types.IsEmpty() ? CEC_DEVICE_TYPE_RESERVED : m_types[0]);