repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cec: fixed - set power state to powered off when a device handled by libcec is made...
[deb_libcec.git]
/
src
/
lib
/
devices
/
CECBusDevice.cpp
diff --git
a/src/lib/devices/CECBusDevice.cpp
b/src/lib/devices/CECBusDevice.cpp
index f03f0cba0bbf590fd6d2baa325a5b6d56a595df2..41643a3519263a238d025fe92c6b2adc68750dde 100644
(file)
--- a/
src/lib/devices/CECBusDevice.cpp
+++ b/
src/lib/devices/CECBusDevice.cpp
@@
-434,10
+434,15
@@
void CCECBusDevice::SetMenuState(const cec_menu_state state)
}
}
}
}
-void CCECBusDevice::SetInactive
Devi
ce(void)
+void CCECBusDevice::SetInactive
Sour
ce(void)
{
{
- CLockObject lock(&m_writeMutex);
- m_bActiveSource = false;
+ {
+ CLockObject lock(&m_writeMutex);
+ m_bActiveSource = false;
+ }
+
+ if (MyLogicalAddressContains(m_iLogicalAddress))
+ SetPowerStatus(CEC_POWER_STATUS_STANDBY);
}
void CCECBusDevice::SetActiveSource(void)
}
void CCECBusDevice::SetActiveSource(void)
@@
-446,7
+451,7
@@
void CCECBusDevice::SetActiveSource(void)
for (int iPtr = 0; iPtr < 16; iPtr++)
if (iPtr != m_iLogicalAddress)
for (int iPtr = 0; iPtr < 16; iPtr++)
if (iPtr != m_iLogicalAddress)
- m_processor->m_busDevices[iPtr]->SetInactive
Devi
ce();
+ m_processor->m_busDevices[iPtr]->SetInactive
Sour
ce();
m_bActiveSource = true;
m_powerStatus = CEC_POWER_STATUS_ON;
m_bActiveSource = true;
m_powerStatus = CEC_POWER_STATUS_ON;