fixed - incorrect active source marking after 88d5d47fe5b37b8fab796e0ec563176bf05b3801
authorLars Op den Kamp <lars@opdenkamp.eu>
Tue, 19 Mar 2013 11:25:01 +0000 (12:25 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Fri, 10 May 2013 14:45:46 +0000 (16:45 +0200)
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

index 89b5b7e8ae9b0ca68c2c77690e8165730dd89851..2859d5aaddc74dccff69528b2be31ac2a3fb6856 100644 (file)
@@ -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;