mark a device as powered on when receiving a stream path or routing change
[deb_libcec.git] / src / lib / devices / CECTuner.cpp
index feb35e4b5bd92834c3099efcbac1b92ee7637409..2de4a1fb185e21292e3599043c1ff54c3926f935 100644 (file)
  *     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 /* = 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();
 }