From: Lars Op den Kamp Date: Thu, 6 Sep 2012 08:57:16 +0000 (+0200) Subject: transmit an active source message after to a device that's handled... X-Git-Tag: upstream/2.2.0~1^2~18^2^2~1 X-Git-Url: https://git.piment-noir.org/?p=deb_libcec.git;a=commitdiff_plain;h=e681f8a52f6196814219e2013af255b0ffb9b5da transmit an active source message after to a device that's handled by libCEC. closes #43 --- 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 {