only change the handler of the primary device if the tv has a quirks mode, not for...
authorLars Op den Kamp <lars@opdenkamp.eu>
Wed, 14 Nov 2012 10:55:53 +0000 (11:55 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Wed, 14 Nov 2012 10:55:53 +0000 (11:55 +0100)
src/lib/implementations/RLCommandHandler.cpp
src/lib/implementations/SLCommandHandler.cpp

index f1f936a66a1af995b2150e92a84c851558ac4e3e..6956a218ab8c4156518fe2db584ad2f2894d16c2 100644 (file)
@@ -57,6 +57,9 @@ bool CRLCommandHandler::InitHandler(void)
     return true;
   m_bHandlerInited = true;
 
+  if (m_busDevice->GetLogicalAddress() != CECDEVICE_TV)
+    return true;
+
   CCECBusDevice *primary = m_processor->GetPrimaryDevice();
   if (primary && primary->GetLogicalAddress() != CECDEVICE_UNREGISTERED)
   {
index 7c9579d8ea6b24254af43679ef656562f04d89c9..4671037b5573902e5a89c2bf78650154bd436534 100644 (file)
@@ -86,6 +86,9 @@ bool CSLCommandHandler::InitHandler(void)
     return true;
   m_bHandlerInited = true;
 
+  if (m_busDevice->GetLogicalAddress() != CECDEVICE_TV)
+    return true;
+
   CCECBusDevice *primary = m_processor->GetPrimaryDevice();
   if (primary && primary->GetLogicalAddress() != CECDEVICE_UNREGISTERED)
   {