only send an active source message when the stream path changed and we weren't the...
authorLars Op den Kamp <lars@opdenkamp.eu>
Mon, 3 Dec 2012 23:57:01 +0000 (00:57 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Mon, 3 Dec 2012 23:57:01 +0000 (00:57 +0100)
src/lib/implementations/CECCommandHandler.cpp

index e4a7995173a1868cf5728c91bb3382d09733c852..a49831565b38c4beb26419a83a59bc64172d758f 100644 (file)
@@ -577,7 +577,7 @@ int CCECCommandHandler::HandleSetStreamPath(const cec_command &command)
     CCECBusDevice *device = GetDeviceByPhysicalAddress(iStreamAddress);
     if (device)
     {
-      if (device->IsHandledByLibCEC())
+      if (device->IsHandledByLibCEC() && !device->IsActiveSource())
         device->ActivateSource();
       else
         device->MarkAsActiveSource();