repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cec: TransmitImageViewOn() and TransmitActiveSource() always returned true, even...
[deb_libcec.git]
/
src
/
lib
/
devices
/
CECBusDevice.cpp
diff --git
a/src/lib/devices/CECBusDevice.cpp
b/src/lib/devices/CECBusDevice.cpp
index 6fd077050038c492f2df72cba371f5edd43dab66..8f966a233194dd748e76a1a43c1b85263ca1a225 100644
(file)
--- a/
src/lib/devices/CECBusDevice.cpp
+++ b/
src/lib/devices/CECBusDevice.cpp
@@
-952,15
+952,15
@@
bool CCECBusDevice::TransmitActiveSource(void)
LIB_CEC->AddLog(CEC_LOG_DEBUG, "<< %s (%X) is not the active source", GetLogicalAddressName(), m_iLogicalAddress);
}
LIB_CEC->AddLog(CEC_LOG_DEBUG, "<< %s (%X) is not the active source", GetLogicalAddressName(), m_iLogicalAddress);
}
+ bool bActiveSourceSent(false);
if (bSendActiveSource)
{
MarkBusy();
if (bSendActiveSource)
{
MarkBusy();
- m_handler->TransmitActiveSource(m_iLogicalAddress, m_iPhysicalAddress);
+
bActiveSourceSent =
m_handler->TransmitActiveSource(m_iLogicalAddress, m_iPhysicalAddress);
MarkReady();
MarkReady();
- return true;
}
}
- return
false
;
+ return
bActiveSourceSent
;
}
bool CCECBusDevice::TransmitImageViewOn(void)
}
bool CCECBusDevice::TransmitImageViewOn(void)
@@
-974,10
+974,11
@@
bool CCECBusDevice::TransmitImageViewOn(void)
}
}
}
}
+ bool bImageViewOnSent(false);
MarkBusy();
MarkBusy();
- m_handler->TransmitImageViewOn(m_iLogicalAddress, CECDEVICE_TV);
+
bImageViewOnSent =
m_handler->TransmitImageViewOn(m_iLogicalAddress, CECDEVICE_TV);
MarkReady();
MarkReady();
- return
true
;
+ return
bImageViewOnSent
;
}
bool CCECBusDevice::TransmitInactiveSource(void)
}
bool CCECBusDevice::TransmitInactiveSource(void)