X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fdevices%2FCECRecordingDevice.cpp;h=a6431ec579a262f6fbb7cac3b83621dd581cddd4;hb=5ce88432714dbc3ff38f93227d84da5ff88b6781;hp=e5ae9d8fbf74215b6743551200b7281e2cd9f24d;hpb=51b2a0943d227f8090948c3d603c643e410cd17d;p=deb_libcec.git diff --git a/src/lib/devices/CECRecordingDevice.cpp b/src/lib/devices/CECRecordingDevice.cpp index e5ae9d8..a6431ec 100644 --- a/src/lib/devices/CECRecordingDevice.cpp +++ b/src/lib/devices/CECRecordingDevice.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-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. @@ -30,13 +30,22 @@ * http://www.pulse-eight.net/ */ +#include "env.h" #include "CECRecordingDevice.h" using namespace CEC; +using namespace PLATFORM; -CCECRecordingDevice::CCECRecordingDevice(CCECProcessor *processor, cec_logical_address address, uint16_t iPhysicalAddress /* = 0 */) : - CCECBusDevice(processor, address, iPhysicalAddress) +CCECRecordingDevice::CCECRecordingDevice(CCECProcessor *processor, cec_logical_address address, uint16_t iPhysicalAddress /* = CEC_INVALID_PHYSICAL_ADDRESS */) : + CCECPlaybackDevice(processor, address, iPhysicalAddress), + m_tuner(processor, address, iPhysicalAddress) { - m_type = CEC_DEVICE_TYPE_RECORDING_DEVICE; - m_strDeviceName = "Recorder"; + m_type = CEC_DEVICE_TYPE_RECORDING_DEVICE; +} + +void CCECRecordingDevice::ResetDeviceStatus(void) +{ + CLockObject lock(m_mutex); + m_tuner.ResetDeviceStatus(); + CCECPlaybackDevice::ResetDeviceStatus(); }