cec: cleanups, documentation and some fixes for the last commits
[deb_libcec.git] / src / lib / devices / CECBusDevice.cpp
index a0d20a8a43d5ebfab551715993734b9e9e033438..9ce80fbbe139331c2f666ea9c8389e25248806d3 100644 (file)
@@ -404,6 +404,12 @@ bool CCECBusDevice::TransmitOSDString(const cec_logical_address destination, cec
   return bReturn;
 }
 
+CStdString CCECBusDevice::GetCurrentOSDName(void)
+{
+  CLockObject lock(m_mutex);
+  return m_strDeviceName;
+}
+
 CStdString CCECBusDevice::GetOSDName(const cec_logical_address initiator, bool bUpdate /* = false */)
 {
   bool bIsPresent(GetStatus() == CEC_DEVICE_STATUS_PRESENT);