From: Lars Op den Kamp Date: Tue, 20 Dec 2011 23:27:42 +0000 (+0100) Subject: cec: transmit an active source message when transmitting the physical address X-Git-Tag: upstream/2.2.0~1^2~43^2~30 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=3c20db73ff7b7cd7f8db54d874a06e8b8db72392;p=deb_libcec.git cec: transmit an active source message when transmitting the physical address --- diff --git a/src/lib/implementations/CECCommandHandler.cpp b/src/lib/implementations/CECCommandHandler.cpp index 5a3de0b..be2a9bd 100644 --- a/src/lib/implementations/CECCommandHandler.cpp +++ b/src/lib/implementations/CECCommandHandler.cpp @@ -299,7 +299,11 @@ bool CCECCommandHandler::HandleGivePhysicalAddress(const cec_command &command) { CCECBusDevice *device = GetDevice(command.destination); if (device) - return device->TransmitPhysicalAddress(); + { + device->SetActiveSource(); + return device->TransmitPhysicalAddress() && + device->TransmitActiveSource(); + } } return false;