don't update the power status when the stream path is reset
authorLars Op den Kamp <lars@opdenkamp.eu>
Wed, 14 Nov 2012 09:27:01 +0000 (10:27 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Wed, 14 Nov 2012 09:27:01 +0000 (10:27 +0100)
src/lib/devices/CECBusDevice.cpp

index 3e44752cc7dd2adfabbbc4319857d4d7b41b5f6f..e9cc13b93f79974bbc34866687dfb1ac8352c8bc 100644 (file)
@@ -1146,7 +1146,8 @@ void CCECBusDevice::SetActiveRoute(uint16_t iRoute)
 
 void CCECBusDevice::SetStreamPath(uint16_t iNewAddress, uint16_t iOldAddress /* = CEC_INVALID_PHYSICAL_ADDRESS */)
 {
-  SetPowerStatus(CEC_POWER_STATUS_ON);
+  if (iNewAddress != CEC_INVALID_PHYSICAL_ADDRESS)
+    SetPowerStatus(CEC_POWER_STATUS_ON);
 
   CLockObject lock(m_mutex);
   if (iNewAddress != m_iStreamPath)