From: Lars Op den Kamp Date: Mon, 3 Dec 2012 23:57:01 +0000 (+0100) Subject: only send an active source message when the stream path changed and we weren't the... X-Git-Tag: upstream/2.2.0~1^2~9^2~1^2~6 X-Git-Url: https://git.piment-noir.org/?p=deb_libcec.git;a=commitdiff_plain;h=d306776d400bf6433813563ec7ac60ba6a91904f only send an active source message when the stream path changed and we weren't the active source yet --- diff --git a/src/lib/implementations/CECCommandHandler.cpp b/src/lib/implementations/CECCommandHandler.cpp index e4a7995..a498315 100644 --- a/src/lib/implementations/CECCommandHandler.cpp +++ b/src/lib/implementations/CECCommandHandler.cpp @@ -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();