cec: transmit an active source message when transmitting the physical address
[deb_libcec.git] / 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;