using namespace CEC;
using namespace PLATFORM;
+#define CEC_ADAPTER_PING_TIMEOUT 15000
+
void *CUSBCECAdapterProcessor::Process(void)
{
cec_command command;
cec_command command;
command.Clear();
bool bCommandReceived(false);
+ CTimeout pingTimeout(CEC_ADAPTER_PING_TIMEOUT);
while (!IsStopped())
{
{
if (!IsStopped() && bCommandReceived)
m_messageProcessor->AddCommand(command);
+ /* ping the adapter every 15 seconds */
+ if (pingTimeout.TimeLeft() == 0)
+ {
+ pingTimeout.Init(CEC_ADAPTER_PING_TIMEOUT);
+ PingAdapter();
+ }
+
if (!IsStopped())
{
Sleep(5);