X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fdevices%2FCECTV.cpp;h=2f852ae4b4ae34f505f109a7da3d687aa25c00bd;hb=e75e09bfc2b9799a6a57f9c4ca8cff4984e8fc99;hp=862cf84faeb22c887c84616662c319cdb90689ee;hpb=51b2a0943d227f8090948c3d603c643e410cd17d;p=deb_libcec.git diff --git a/src/lib/devices/CECTV.cpp b/src/lib/devices/CECTV.cpp index 862cf84..2f852ae 100644 --- a/src/lib/devices/CECTV.cpp +++ b/src/lib/devices/CECTV.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,13 +30,20 @@ * http://www.pulse-eight.net/ */ +#include "env.h" #include "CECTV.h" using namespace CEC; +using namespace PLATFORM; -CCECTV::CCECTV(CCECProcessor *processor, cec_logical_address address, uint16_t iPhysicalAddress /* = 0 */) : - CCECBusDevice(processor, address, iPhysicalAddress) +CCECTV::CCECTV(CCECProcessor *processor, cec_logical_address address) : + CCECBusDevice(processor, address, CEC_PHYSICAL_ADDRESS_TV) { - m_type = CEC_DEVICE_TYPE_TV; - m_strDeviceName = "TV"; + m_type = CEC_DEVICE_TYPE_TV; +} + +void CCECTV::ResetDeviceStatus(void) +{ + CLockObject lock(m_mutex); + CCECBusDevice::ResetDeviceStatus(); }