From e681f8a52f6196814219e2013af255b0ffb9b5da Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Thu, 6 Sep 2012 10:57:16 +0200 Subject: [PATCH] transmit an active source message after to a device that's handled by libCEC. closes #43 --- src/lib/devices/CECBusDevice.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/devices/CECBusDevice.cpp b/src/lib/devices/CECBusDevice.cpp index 466e977..2998a62 100644 --- a/src/lib/devices/CECBusDevice.cpp +++ b/src/lib/devices/CECBusDevice.cpp @@ -1087,6 +1087,10 @@ void CCECBusDevice::SetStreamPath(uint16_t iNewAddress, uint16_t iOldAddress /* { // if a device is found with the new physical address, mark it as active, which will automatically mark all other devices as inactive device->MarkAsActiveSource(); + + // respond with an active source message if this device is handled by libCEC + if (device->IsHandledByLibCEC()) + device->TransmitActiveSource(true); } else { -- 2.34.1