cec: the OSD name of a TV is always 'TV'
authorLars Op den Kamp <lars@opdenkamp.eu>
Sun, 4 Dec 2011 02:08:52 +0000 (03:08 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Sun, 4 Dec 2011 02:28:33 +0000 (03:28 +0100)
src/lib/devices/CECBusDevice.cpp

index 01be1d2254f1398486e1cc1ed00333c1a50be176..52f0c207c6390701459a2239188cb924891f194b 100644 (file)
@@ -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;