cec: don't send power on, acitve source and standby commands by default in cec-client
authorLars Op den Kamp <lars@opdenkamp.eu>
Mon, 13 Feb 2012 17:42:18 +0000 (18:42 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Mon, 13 Feb 2012 17:42:18 +0000 (18:42 +0100)
src/testclient/main.cpp

index 75172498e5823845a35d2c2f8ef3f7f2519ba9aa..2e7fee43c4f5beacc92500958d6f6c2c1183d855 100644 (file)
@@ -1103,14 +1103,7 @@ int main (int argc, char *argv[])
   }
 
   if (!g_bSingleCommand)
-  {
-    PrintToStdOut("cec device opened");
-
-    parser->PowerOnDevices(CECDEVICE_TV);
-    parser->SetActiveSource();
-
     PrintToStdOut("waiting for input");
-  }
 
   while (!g_bExit && !g_bHardExit)
   {
@@ -1130,9 +1123,6 @@ int main (int argc, char *argv[])
       CEvent::Sleep(50);
   }
 
-  if (!g_bSingleCommand && !g_bHardExit)
-    parser->StandbyDevices(CECDEVICE_BROADCAST);
-
   parser->Close();
   UnloadLibCec(parser);