repositories
/
deb_libcec.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
13fd6a6
)
cec: send opcode_image_view_on instead of text_view_on
author
Lars Op den Kamp
<lars@opdenkamp.eu>
Sat, 8 Oct 2011 00:25:55 +0000
(
02:25
+0200)
committer
Lars Op den Kamp
<lars@opdenkamp.eu>
Sat, 8 Oct 2011 00:25:55 +0000
(
02:25
+0200)
src/lib/CECProcessor.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/lib/CECProcessor.cpp
b/src/lib/CECProcessor.cpp
index 6a4fafff1ae656f7dd739792bfc2adb2007905c2..44b2acb44dbcdae590f3646f11b618e7fedf8978 100644
(file)
--- a/
src/lib/CECProcessor.cpp
+++ b/
src/lib/CECProcessor.cpp
@@
-118,7
+118,7
@@
bool CCECProcessor::PowerOnDevices(cec_logical_address address /* = CECDEVICE_TV
frame.clear();
frame.push_back(GetSourceDestination(address));
frame.clear();
frame.push_back(GetSourceDestination(address));
- frame.push_back((uint8_t) CEC_OPCODE_
TEXT
_VIEW_ON);
+ frame.push_back((uint8_t) CEC_OPCODE_
IMAGE
_VIEW_ON);
return Transmit(frame);
}
return Transmit(frame);
}
@@
-553,8
+553,11
@@
void CCECProcessor::ParseCurrentFrame(void)
}
else if (destination == (uint8_t) CECDEVICE_BROADCAST)
{
}
else if (destination == (uint8_t) CECDEVICE_BROADCAST)
{
+ CStdString strLog;
if (opCode == CEC_OPCODE_REQUEST_ACTIVE_SOURCE)
{
if (opCode == CEC_OPCODE_REQUEST_ACTIVE_SOURCE)
{
+ strLog.Format("%i requests active source", initiator);
+ m_controller->AddLog(CEC_LOG_DEBUG, strLog.c_str());
BroadcastActiveSource();
}
else if (opCode == CEC_OPCODE_SET_STREAM_PATH)
BroadcastActiveSource();
}
else if (opCode == CEC_OPCODE_SET_STREAM_PATH)
@@
-562,7
+565,6
@@
void CCECProcessor::ParseCurrentFrame(void)
if (m_currentframe.size >= 4)
{
int streamaddr = ((int)m_currentframe.data[2] << 8) | ((int)m_currentframe.data[3]);
if (m_currentframe.size >= 4)
{
int streamaddr = ((int)m_currentframe.data[2] << 8) | ((int)m_currentframe.data[3]);
- CStdString strLog;
strLog.Format("%i requests stream path from physical address %04x", initiator, streamaddr);
m_controller->AddLog(CEC_LOG_DEBUG, strLog.c_str());
if (streamaddr == m_physicaladdress)
strLog.Format("%i requests stream path from physical address %04x", initiator, streamaddr);
m_controller->AddLog(CEC_LOG_DEBUG, strLog.c_str());
if (streamaddr == m_physicaladdress)