cec: renamed all Broadcast...() and Report...() methods to Transmit...()
[deb_libcec.git] / src / lib / implementations / VLCommandHandler.cpp
index 89f5b2eadebc5668436040c68b841e4c4b798f0d..d1c7605e3d83574b1f172b47fd6cd3cf35c2e9f0 100644 (file)
@@ -51,13 +51,12 @@ bool CVLCommandHandler::HandleSetStreamPath(const cec_command &command)
     m_busDevice->AddLog(CEC_LOG_DEBUG, strLog.c_str());
     if (streamaddr == m_busDevice->GetMyPhysicalAddress())
     {
-      CCECBusDevice *device = GetThisDevice();
-      CCECBusDevice *initiatorDevice = GetDevice(command.initiator);
-      if (device && initiatorDevice)
+      CCECBusDevice *device = GetDevice(command.destination);
+      if (device)
       {
-        return device->BroadcastActiveSource() &&
-               device->BroadcastActiveView() &&
-               initiatorDevice->ReportMenuState();
+        return device->TransmitActiveSource() &&
+               device->TransmitActiveView() &&
+               device->TransmitMenuState(command.initiator);
       }
       return false;
     }