cec: fixed - don't change the active device when the stream path changed.
authorLars Op den Kamp <lars@opdenkamp.eu>
Fri, 9 Dec 2011 11:14:54 +0000 (12:14 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Fri, 9 Dec 2011 11:14:54 +0000 (12:14 +0100)
src/lib/implementations/CECCommandHandler.cpp

index c7b030543ca044a137b78e8947009e98fabb39c7..57233fd3cc08aad07b346a8200e5f0771611765e 100644 (file)
@@ -463,14 +463,6 @@ bool CCECCommandHandler::HandleSetStreamPath(const cec_command &command)
     CStdString strLog;
     strLog.Format(">> %i sets stream path to physical address %04x", command.initiator, iStreamAddress);
     m_busDevice->AddLog(CEC_LOG_DEBUG, strLog.c_str());
-
-    CCECBusDevice *device = GetDeviceByPhysicalAddress(iStreamAddress);
-    if (device)
-    {
-      device->SetActiveSource();
-      return device->TransmitActiveSource() &&
-          device->TransmitMenuState(command.initiator);
-    }
   }
   return false;
 }