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:
7937b92
)
cec: don't unregister clients in CLibCEC when disconnecting, but only in CCECProcesso...
author
Lars Op den Kamp
<lars@opdenkamp.eu>
Fri, 1 Jun 2012 08:27:37 +0000
(10:27 +0200)
committer
Lars Op den Kamp
<lars@opdenkamp.eu>
Fri, 1 Jun 2012 08:27:37 +0000
(10:27 +0200)
src/lib/LibCEC.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/lib/LibCEC.cpp
b/src/lib/LibCEC.cpp
index 331b11d3b7cbfedd485a56c3d1787446dd3b0ca6..56ece65b08d706d7275b6f04fd696ccd1482511e 100644
(file)
--- a/
src/lib/LibCEC.cpp
+++ b/
src/lib/LibCEC.cpp
@@
-102,12
+102,14
@@
bool CLibCEC::Open(const char *strPort, uint32_t iTimeoutMs /* = CEC_DEFAULT_CON
void CLibCEC::Close(void)
{
+ if (!m_cec)
+ return;
+
// unregister all clients
- UnregisterClients();
+
m_cec->
UnregisterClients();
// close the connection
- if (m_cec)
- m_cec->Close();
+ m_cec->Close();
}
int8_t CLibCEC::FindAdapters(cec_adapter *deviceList, uint8_t iBufSize, const char *strDevicePath /* = NULL */)