repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
win32: sync visual studio project file. use uint32_t instead of uint64_t for the...
[deb_libcec.git]
/
src
/
lib
/
CECProcessor.cpp
diff --git
a/src/lib/CECProcessor.cpp
b/src/lib/CECProcessor.cpp
index e9caaf0835ba0cec3a4e83e72fb410541f825f35..6bfab0d7b9e0a11f1aecd776abc1681988763443 100644
(file)
--- a/
src/lib/CECProcessor.cpp
+++ b/
src/lib/CECProcessor.cpp
@@
-114,6
+114,9
@@
void *CCECProcessor::Process(void)
m_controller->CheckKeypressTimeout();
m_controller->CheckKeypressTimeout();
+ for (unsigned int iDevicePtr = 0; iDevicePtr < 16; iDevicePtr++)
+ m_busDevices[iDevicePtr]->PollVendorId();
+
if (!IsStopped())
Sleep(5);
}
if (!IsStopped())
Sleep(5);
}
@@
-530,9
+533,9
@@
void CCECProcessor::ParseVendorId(cec_logical_address device, const cec_datapack
return;
}
return;
}
- uint
64_t iVendorId = ((uint64
_t)data[0] << 3) +
- ((uint
64
_t)data[1] << 2) +
- (uint
64
_t)data[2];
+ uint
32_t iVendorId = ((uint32
_t)data[0] << 3) +
+ ((uint
32
_t)data[1] << 2) +
+ (uint
32
_t)data[2];
m_busDevices[(uint8_t)device]->SetVendorId(iVendorId, data.size >= 4 ? data[3] : 0);
}
m_busDevices[(uint8_t)device]->SetVendorId(iVendorId, data.size >= 4 ? data[3] : 0);
}