cec: missing return statement in CCECCommandHandler::InitHandler()
[deb_libcec.git] / src / lib / implementations / CECCommandHandler.cpp
index 5a3de0b690c7d4015a2b27144e69c6ab69d7ef46..c78f6438f6f9c7b6d31e72d0ebe7df03de20cecd 100644 (file)
@@ -299,7 +299,11 @@ bool CCECCommandHandler::HandleGivePhysicalAddress(const cec_command &command)
   {
     CCECBusDevice *device = GetDevice(command.destination);
     if (device)
-      return device->TransmitPhysicalAddress();
+    {
+      device->SetActiveSource();
+      return device->TransmitPhysicalAddress() &&
+          device->TransmitActiveSource();
+    }
   }
 
   return false;
@@ -934,4 +938,5 @@ bool CCECCommandHandler::InitHandler(void)
     m_processor->SetActiveSource();
     primary->TransmitMenuState(m_busDevice->GetLogicalAddress());
   }
+  return true;
 }