cec: fixed SetActiveView(). the correct hdmi port will now be selected again
authorLars Op den Kamp <lars@opdenkamp.eu>
Sun, 20 Nov 2011 23:50:02 +0000 (00:50 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Sun, 20 Nov 2011 23:55:05 +0000 (00:55 +0100)
src/lib/CECProcessor.cpp

index 1bcba1893e60b728db5329a0d55e06e222c54d78..a51abc7917b2fdc48fa4b789e6277027f1f33d1d 100644 (file)
@@ -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 */)