X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fimplementations%2FPHCommandHandler.cpp;h=d7e484860304788a3365089d938a4cbc9ca52e84;hb=bfea6e0a8ee4bc9e40c64ea68f22db69ac3cb26f;hp=a4e7129d44b22780b3523c19abb8978cd4ab8eb9;hpb=ec0cc2ea24b8c4757e0d9508646e75d05d469a79;p=deb_libcec.git diff --git a/src/lib/implementations/PHCommandHandler.cpp b/src/lib/implementations/PHCommandHandler.cpp index a4e7129..d7e4848 100644 --- a/src/lib/implementations/PHCommandHandler.cpp +++ b/src/lib/implementations/PHCommandHandler.cpp @@ -1,7 +1,7 @@ /* * This file is part of the libCEC(R) library. * - * libCEC(R) is Copyright (C) 2011-2012 Pulse-Eight Limited. All rights reserved. + * libCEC(R) is Copyright (C) 2011-2013 Pulse-Eight Limited. All rights reserved. * libCEC(R) is an original work, containing original code. * * libCEC(R) is a trademark of Pulse-Eight Limited. @@ -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); @@ -151,9 +152,9 @@ int CPHCommandHandler::HandleDeviceVendorId(const cec_command& command) return CCECCommandHandler::HandleDeviceVendorId(command); } -int CPHCommandHandler::HandleGiveDeviceVendorId(const cec_command& command) +bool CPHCommandHandler::TransmitVendorID(const cec_logical_address iInitiator, const cec_logical_address iDestination, uint64_t UNUSED(iVendorId), bool UNUSED(bIsReply)) { - LIB_CEC->AddLog(CEC_LOG_DEBUG, "<< %s (%X) -> %s (%X): vendor id feature abort", ToString(command.destination), command.destination, ToString(command.initiator), command.initiator); - m_processor->TransmitAbort(command.destination, command.initiator, CEC_OPCODE_GIVE_DEVICE_VENDOR_ID); - return COMMAND_HANDLED; + LIB_CEC->AddLog(CEC_LOG_DEBUG, "<< %s (%X) -> %s (%X): vendor id feature abort", ToString(iInitiator), iInitiator, ToString(iDestination), iDestination); + m_processor->TransmitAbort(iInitiator, iDestination, CEC_OPCODE_GIVE_DEVICE_VENDOR_ID); + return true; }