aboutsummaryrefslogtreecommitdiff
path: root/guilib
diff options
context:
space:
mode:
authoralthekiller <althekiller@svn>2010-08-14 17:12:33 +0000
committeralthekiller <althekiller@svn>2010-08-14 17:12:33 +0000
commitb49c66dff849999114717fe86635d0d5c4612538 (patch)
tree3d965637c24e314425fbce0db008b486fbb8b42f /guilib
parent08b76db70afe4498ce53b5c34a81ca478da92314 (diff)
fixed: Reinitialize lirc when the device is set. fixes #9879 "option --lircdev doesn't work"
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@32777 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib')
-rw-r--r--guilib/common/LIRC.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/guilib/common/LIRC.cpp b/guilib/common/LIRC.cpp
index bebaf671af..8f2b896bf7 100644
--- a/guilib/common/LIRC.cpp
+++ b/guilib/common/LIRC.cpp
@@ -112,6 +112,11 @@ void CRemoteControl::setDeviceName(const CStdString& value)
m_deviceName=value;
else
m_deviceName=LIRC_DEVICE;
+ if (m_bInitialized)
+ {
+ Disconnect();
+ Initialize();
+ }
}
void CRemoteControl::Initialize()