X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fdevices%2FCECTuner.cpp;h=2de4a1fb185e21292e3599043c1ff54c3926f935;hb=0b83551352338fb45b285c44d6baccd867f05b6d;hp=41b6c5eebaa1793c501efa18090c00f6de3214c8;hpb=62f5527da093117c4188e8fb3dc1469802be203e;p=deb_libcec.git diff --git a/src/lib/devices/CECTuner.cpp b/src/lib/devices/CECTuner.cpp index 41b6c5e..2de4a1f 100644 --- a/src/lib/devices/CECTuner.cpp +++ b/src/lib/devices/CECTuner.cpp @@ -1,7 +1,7 @@ /* * This file is part of the libCEC(R) library. * - * libCEC(R) is Copyright (C) 2011 Pulse-Eight Limited. All rights reserved. + * libCEC(R) is Copyright (C) 2011-2012 Pulse-Eight Limited. All rights reserved. * libCEC(R) is an original work, containing original code. * * libCEC(R) is a trademark of Pulse-Eight Limited. @@ -30,12 +30,20 @@ * http://www.pulse-eight.net/ */ +#include "env.h" #include "CECTuner.h" using namespace CEC; +using namespace PLATFORM; -CCECTuner::CCECTuner(CCECProcessor *processor, cec_logical_address address, uint16_t iPhysicalAddress /* = 0 */) : +CCECTuner::CCECTuner(CCECProcessor *processor, cec_logical_address address, uint16_t iPhysicalAddress /* = CEC_INVALID_PHYSICAL_ADDRESS */) : CCECBusDevice(processor, address, iPhysicalAddress) { - m_type = CEC_DEVICE_TYPE_TUNER; + m_type = CEC_DEVICE_TYPE_TUNER; +} + +void CCECTuner::ResetDeviceStatus(void) +{ + CLockObject lock(m_mutex); + CCECBusDevice::ResetDeviceStatus(); }