X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fimplementations%2FRLCommandHandler.cpp;h=6956a218ab8c4156518fe2db584ad2f2894d16c2;hb=0c271bd0fc05728d0dd90065a064737a979f50d3;hp=5653137616d304b11bcb0949fdc69b05cf0c5966;hpb=060a7b5eaa3b6cb10afce2c7273a5c021f4fea2e;p=deb_libcec.git diff --git a/src/lib/implementations/RLCommandHandler.cpp b/src/lib/implementations/RLCommandHandler.cpp index 5653137..6956a21 100644 --- a/src/lib/implementations/RLCommandHandler.cpp +++ b/src/lib/implementations/RLCommandHandler.cpp @@ -30,10 +30,13 @@ * http://www.pulse-eight.net/ */ +#include "env.h" #include "RLCommandHandler.h" -#include "../devices/CECBusDevice.h" -#include "../CECProcessor.h" -#include "../LibCEC.h" + +#include "lib/platform/util/timeutils.h" +#include "lib/devices/CECBusDevice.h" +#include "lib/CECProcessor.h" +#include "lib/LibCEC.h" using namespace CEC; using namespace PLATFORM; @@ -54,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) { @@ -67,7 +73,7 @@ bool CRLCommandHandler::InitHandler(void) if (m_busDevice->GetLogicalAddress() == CECDEVICE_TV) { /* send the vendor id */ - primary->TransmitVendorID(CECDEVICE_BROADCAST); + primary->TransmitVendorID(CECDEVICE_BROADCAST, false, false); } }