From: Lars Op den Kamp Date: Sun, 4 Dec 2011 02:08:52 +0000 (+0100) Subject: cec: the OSD name of a TV is always 'TV' X-Git-Tag: upstream/2.2.0~1^2~44^2~52 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=6583c36581d07fbcda7e3f6fa11f7343b38a5be7;p=deb_libcec.git cec: the OSD name of a TV is always 'TV' --- diff --git a/src/lib/devices/CECBusDevice.cpp b/src/lib/devices/CECBusDevice.cpp index 01be1d2..52f0c20 100644 --- a/src/lib/devices/CECBusDevice.cpp +++ b/src/lib/devices/CECBusDevice.cpp @@ -216,7 +216,8 @@ CStdString CCECBusDevice::GetOSDName(void) { CLockObject lock(&m_mutex); if (GetStatus() == CEC_DEVICE_STATUS_PRESENT && - m_strDeviceName.Equals(ToString(m_iLogicalAddress))) + m_strDeviceName.Equals(ToString(m_iLogicalAddress)) && + m_type != CEC_DEVICE_TYPE_TV) RequestOSDName(); return m_strDeviceName;