From: Lars Op den Kamp Date: Fri, 9 Dec 2011 11:14:54 +0000 (+0100) Subject: cec: fixed - don't change the active device when the stream path changed. X-Git-Tag: upstream/2.2.0~1^2~44^2~4 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=b022c181c03778c12291548e9726a7a18d3e5753;p=deb_libcec.git cec: fixed - don't change the active device when the stream path changed. --- diff --git a/src/lib/implementations/CECCommandHandler.cpp b/src/lib/implementations/CECCommandHandler.cpp index c7b0305..57233fd 100644 --- a/src/lib/implementations/CECCommandHandler.cpp +++ b/src/lib/implementations/CECCommandHandler.cpp @@ -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; }