cec: transmit an active source message when transmitting the physical address
authorLars Op den Kamp <lars@opdenkamp.eu>
Tue, 20 Dec 2011 23:27:42 +0000 (00:27 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Tue, 20 Dec 2011 23:29:28 +0000 (00:29 +0100)
src/lib/implementations/CECCommandHandler.cpp

index 5a3de0b690c7d4015a2b27144e69c6ab69d7ef46..be2a9bd661bc322b1645e0417fcee7180900fb10 100644 (file)
@@ -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;