fixed - don't keep trying to send 'image view on' commands to the TV when no TV is...
[deb_libcec.git] / src / lib / implementations / VLCommandHandler.cpp
index 227d8a0aa3b67e25ebe4ec8f71a4f51c85a22d1a..00e062bc8c3920096dbf6abca8a1dfd424058797 100644 (file)
@@ -162,8 +162,11 @@ bool CVLCommandHandler::PowerUpEventReceived(void)
 
   if (m_busDevice->GetLogicalAddress() != CECDEVICE_TV)
   {
+    CCECBusDevice* tv = m_processor->GetTV();
+    if (tv && tv->GetStatus() != CEC_DEVICE_STATUS_PRESENT)
+      return true;
+
     // get the status from the TV
-    CCECBusDevice *tv = m_processor->GetTV();
     if (tv && tv->GetCurrentVendorId() == CEC_VENDOR_PANASONIC)
     {
       CVLCommandHandler *handler = static_cast<CVLCommandHandler *>(tv->GetHandler());