only send an active source message when the stream path changed and we weren't the...
[deb_libcec.git] / 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();