repositories
/
deb_libcec.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b0a148
)
cec: added guard so ReplaceHandler() doesn't accidently try to replace a handler...
author
Lars Op den Kamp
<lars@opdenkamp.eu>
Thu, 2 Aug 2012 15:47:51 +0000
(17:47 +0200)
committer
Lars Op den Kamp
<lars@opdenkamp.eu>
Thu, 2 Aug 2012 15:47:51 +0000
(17:47 +0200)
src/lib/devices/CECBusDevice.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/lib/devices/CECBusDevice.cpp
b/src/lib/devices/CECBusDevice.cpp
index 5b3e2cb42626fc1566bd215ea407236e76c11492..466e977249159f740cbe32a53765dc1716929476 100644
(file)
--- a/
src/lib/devices/CECBusDevice.cpp
+++ b/
src/lib/devices/CECBusDevice.cpp
@@
-95,6
+95,9
@@
CCECBusDevice::~CCECBusDevice(void)
bool CCECBusDevice::ReplaceHandler(bool bActivateSource /* = true */)
{
+ if (m_iLogicalAddress == CECDEVICE_BROADCAST)
+ return false;
+
bool bInitHandler(false);
{
CLockObject lock(m_mutex);