From 9924d0b1ca93ede1658cf628a39ae35c075b59f6 Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Tue, 19 Mar 2013 12:25:01 +0100 Subject: [PATCH] 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 --- src/lib/implementations/CECCommandHandler.cpp | 7 ------- 1 file changed, 7 deletions(-) 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; -- 2.34.1