repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added bQuickScan param to DetectDevices(), so we don't try to open a connection each...
[deb_libcec.git]
/
src
/
lib
/
implementations
/
RLCommandHandler.cpp
diff --git
a/src/lib/implementations/RLCommandHandler.cpp
b/src/lib/implementations/RLCommandHandler.cpp
index 5653137616d304b11bcb0949fdc69b05cf0c5966..5264c110ba092f454005758a425fbad07032f2cc 100644
(file)
--- a/
src/lib/implementations/RLCommandHandler.cpp
+++ b/
src/lib/implementations/RLCommandHandler.cpp
@@
-1,7
+1,7
@@
/*
* This file is part of the libCEC(R) library.
*
/*
* This file is part of the libCEC(R) library.
*
- * libCEC(R) is Copyright (C) 2011-201
2
Pulse-Eight Limited. All rights reserved.
+ * libCEC(R) is Copyright (C) 2011-201
3
Pulse-Eight Limited. All rights reserved.
* libCEC(R) is an original work, containing original code.
*
* libCEC(R) is a trademark of Pulse-Eight Limited.
* libCEC(R) is an original work, containing original code.
*
* libCEC(R) is a trademark of Pulse-Eight Limited.
@@
-30,10
+30,13
@@
* http://www.pulse-eight.net/
*/
* http://www.pulse-eight.net/
*/
+#include "env.h"
#include "RLCommandHandler.h"
#include "RLCommandHandler.h"
-#include "../devices/CECBusDevice.h"
-#include "../CECProcessor.h"
-#include "../LibCEC.h"
+
+#include "lib/platform/util/timeutils.h"
+#include "lib/devices/CECBusDevice.h"
+#include "lib/CECProcessor.h"
+#include "lib/LibCEC.h"
using namespace CEC;
using namespace PLATFORM;
using namespace CEC;
using namespace PLATFORM;
@@
-54,6
+57,9
@@
bool CRLCommandHandler::InitHandler(void)
return true;
m_bHandlerInited = true;
return true;
m_bHandlerInited = true;
+ if (m_busDevice->GetLogicalAddress() != CECDEVICE_TV)
+ return true;
+
CCECBusDevice *primary = m_processor->GetPrimaryDevice();
if (primary && primary->GetLogicalAddress() != CECDEVICE_UNREGISTERED)
{
CCECBusDevice *primary = m_processor->GetPrimaryDevice();
if (primary && primary->GetLogicalAddress() != CECDEVICE_UNREGISTERED)
{
@@
-67,7
+73,7
@@
bool CRLCommandHandler::InitHandler(void)
if (m_busDevice->GetLogicalAddress() == CECDEVICE_TV)
{
/* send the vendor id */
if (m_busDevice->GetLogicalAddress() == CECDEVICE_TV)
{
/* send the vendor id */
- primary->TransmitVendorID(CECDEVICE_BROADCAST);
+ primary->TransmitVendorID(CECDEVICE_BROADCAST
, false, false
);
}
}
}
}