repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
timeout parameter removed from Close()/cec_close(). return type changed to void....
[deb_libcec.git]
/
src
/
testclient
/
main.cpp
diff --git
a/src/testclient/main.cpp
b/src/testclient/main.cpp
index 15a333d0f78f2f9a49ade060e3662ef68fadc0ac..458c73404b4750062329526ec6cf3582e74975b6 100644
(file)
--- a/
src/testclient/main.cpp
+++ b/
src/testclient/main.cpp
@@
-42,7
+42,7
@@
using namespace CEC;
using namespace std;
using namespace CEC;
using namespace std;
-#define CEC_TEST_CLIENT_VERSION
2
+#define CEC_TEST_CLIENT_VERSION
3
void flush_log(ICECDevice *cecParser)
{
void flush_log(ICECDevice *cecParser)
{
@@
-192,7
+192,7
@@
int main (int argc, char *argv[])
cout << "cec device opened" << endl;
usleep(CEC_SETTLE_DOWN_TIME);
cout << "cec device opened" << endl;
usleep(CEC_SETTLE_DOWN_TIME);
- parser->PowerOnDevices();
+ parser->PowerOnDevices(
CECDEVICE_TV
);
flush_log(parser);
parser->SetActiveView();
flush_log(parser);
parser->SetActiveView();
@@
-263,7
+263,8
@@
int main (int argc, char *argv[])
CCondition::Sleep(50);
}
CCondition::Sleep(50);
}
- parser->PowerOffDevices();
+ parser->PowerOffDevices(CECDEVICE_BROADCAST);
+ parser->Close();
flush_log(parser);
UnloadLibCec(parser);
return 0;
flush_log(parser);
UnloadLibCec(parser);
return 0;