g_callbacks.CBCecLogMessage = &CecLogMessage;
g_callbacks.CBCecKeyPress = &CecKeyPress;
g_callbacks.CBCecCommand = &CecCommand;
+ g_callbacks.CBCecConfigurationChanged = NULL;
adapter->EnableCallbacks(NULL, &g_callbacks);
}
}
if (!g_bSingleCommand)
- {
- PrintToStdOut("cec device opened");
-
- parser->PowerOnDevices(CECDEVICE_TV);
- parser->SetActiveSource();
-
PrintToStdOut("waiting for input");
- }
while (!g_bExit && !g_bHardExit)
{
CEvent::Sleep(50);
}
- if (!g_bSingleCommand && !g_bHardExit)
- parser->StandbyDevices(CECDEVICE_BROADCAST);
-
parser->Close();
UnloadLibCec(parser);