From: Lars Op den Kamp Date: Wed, 14 Nov 2012 10:55:53 +0000 (+0100) Subject: only change the handler of the primary device if the tv has a quirks mode, not for... X-Git-Tag: upstream/2.2.0~1^2~12^2~15 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=0b83551352338fb45b285c44d6baccd867f05b6d;p=deb_libcec.git only change the handler of the primary device if the tv has a quirks mode, not for other devices --- diff --git a/src/lib/implementations/RLCommandHandler.cpp b/src/lib/implementations/RLCommandHandler.cpp index f1f936a..6956a21 100644 --- a/src/lib/implementations/RLCommandHandler.cpp +++ b/src/lib/implementations/RLCommandHandler.cpp @@ -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) { diff --git a/src/lib/implementations/SLCommandHandler.cpp b/src/lib/implementations/SLCommandHandler.cpp index 7c9579d..4671037 100644 --- a/src/lib/implementations/SLCommandHandler.cpp +++ b/src/lib/implementations/SLCommandHandler.cpp @@ -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) {