cosmetics
[deb_libcec.git] / src / lib / implementations / CECCommandHandler.cpp
index c78f6438f6f9c7b6d31e72d0ebe7df03de20cecd..3906060691712eb822137a5c0dc2978b7e433351 100644 (file)
@@ -931,7 +931,7 @@ bool CCECCommandHandler::InitHandler(void)
 {
   if (m_busDevice->GetLogicalAddress() == CECDEVICE_TV)
   {
-    CCECBusDevice *primary = m_processor->m_busDevices[m_processor->GetLogicalAddresses().primary];
+    CCECBusDevice *primary = m_processor->GetPrimaryDevice();
     primary->SetPowerStatus(CEC_POWER_STATUS_ON);
     primary->SetMenuState(CEC_MENU_STATE_ACTIVATED);