We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bd0bf7c + 2a5d737 commit c7c4c82Copy full SHA for c7c4c82
src/libcec/CECClient.cpp
@@ -136,8 +136,10 @@ bool CCECClient::OnRegister(void)
136
(*it)->SetMenuLanguage(std::string(m_configuration.strDeviceLanguage, 3));
137
}
138
139
- // set the physical address
140
- SetPhysicalAddress(m_configuration);
+ // set the physical address, unless already resolved (e.g. via SetHDMIPort during RegisterClient)
+ if (!CLibCEC::IsValidPhysicalAddress(m_configuration.iPhysicalAddress) ||
141
+ m_configuration.iPhysicalAddress == CEC_PHYSICAL_ADDRESS_TV)
142
+ SetPhysicalAddress(m_configuration);
143
144
// make the primary device the active source if the option is set
145
if (m_configuration.bActivateSource == 1)
0 commit comments