From: Lars Op den Kamp Date: Tue, 19 Mar 2013 11:25:01 +0000 (+0100) Subject: fixed - incorrect active source marking after 88d5d47fe5b37b8fab796e0ec563176bf05b3801 X-Git-Tag: upstream/2.2.0~1^2~4^2~5 X-Git-Url: https://git.piment-noir.org/?p=deb_libcec.git;a=commitdiff_plain;h=9924d0b1ca93ede1658cf628a39ae35c075b59f6 fixed - incorrect active source marking after 88d5d47fe5b37b8fab796e0ec563176bf05b3801 libCEC marked itself as inactive source when the stream path changed to a device with a different physical address. bugzid: 2157 --- diff --git a/src/lib/implementations/CECCommandHandler.cpp b/src/lib/implementations/CECCommandHandler.cpp index 89b5b7e..2859d5a 100644 --- a/src/lib/implementations/CECCommandHandler.cpp +++ b/src/lib/implementations/CECCommandHandler.cpp @@ -583,13 +583,6 @@ int CCECCommandHandler::HandleSetStreamPath(const cec_command &command) device->MarkAsActiveSource(); return COMMAND_HANDLED; } - else - { - cec_logical_address previousSource = m_processor->GetActiveSource(false); - CCECBusDevice* device = m_processor->GetDevice(previousSource); - if (device && device->GetCurrentPhysicalAddress() != iStreamAddress) - device->MarkAsInactiveSource(); - } } return CEC_ABORT_REASON_INVALID_OPERAND;