don't send two active source message sequences to philips. issue #118
[deb_libcec.git] / src / lib / implementations / PHCommandHandler.cpp
index b46f69e06bfb53cf80727744eff943ca61209f93..7b7e3d6bfe2f0cfaad898bcaea6eabbda0130930 100644 (file)
@@ -86,6 +86,7 @@ CPHCommandHandler::CPHCommandHandler(CCECBusDevice *busDevice,
 {
   m_imageViewOnCheck = new CImageViewOnCheck(this);
   m_vendorId = CEC_VENDOR_PHILIPS;
+  m_bOPTSendDeckStatusUpdateOnActiveSource = false;
 }
 
 CPHCommandHandler::~CPHCommandHandler(void)
@@ -121,7 +122,7 @@ bool CPHCommandHandler::ActivateSource(bool bTransmitDelayedCommandsOnly /* = fa
   {
     // tv sometimes ignores image view on. check the power status of the tv in 5 seconds, and retry when it failed to power up
     if (m_imageViewOnCheck && !m_imageViewOnCheck->IsRunning())
-      m_imageViewOnCheck->CreateThread(false);
+      return m_imageViewOnCheck->CreateThread(false);
   }
 
   return CCECCommandHandler::ActivateSource(bTransmitDelayedCommandsOnly);