summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Hagmann <andreas@macbookpro.home>2013-11-17 01:02:21 (GMT)
committerAndreas Hagmann <andreas@macbookpro.home>2013-11-17 01:02:21 (GMT)
commit302f9aecc1c1cd9b7b634efe50d7bc3f2576ecbc (patch)
treef18f622cc9f6d533b7b40594337aaaac8aa1b1bc
parent00b08b4737176cf653cd70967d06149b386d9667 (diff)
downloadvdr-plugin-gamepad-302f9aecc1c1cd9b7b634efe50d7bc3f2576ecbc.tar.gz
vdr-plugin-gamepad-302f9aecc1c1cd9b7b634efe50d7bc3f2576ecbc.tar.bz2
fix SVDRP commandsv0.0.1
-rwxr-xr-xgamepad.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gamepad.c b/gamepad.c
index 672ab2f..7432e09 100755
--- a/gamepad.c
+++ b/gamepad.c
@@ -44,7 +44,10 @@ cPluginGamepad::cPluginGamepad(void) : processKeysThread(NULL)
cPluginGamepad::~cPluginGamepad()
{
- // Clean up after yourself!
+ if (processKeysThread != NULL)
+ {
+ delete processKeysThread;
+ }
}
const char *cPluginGamepad::CommandLineHelp(void)
@@ -78,7 +81,6 @@ void cPluginGamepad::Stop(void)
{
if (processKeysThread) {
processKeysThread->Cancel(10);
- processKeysThread = NULL;
}
}
@@ -147,6 +149,7 @@ cString cPluginGamepad::SVDRPCommand(const char *Command, const char *Option, in
{
if (strcasecmp(Command, "ENABLE") == 0)
{
+ Start();
ReplyCode = 900;
return "Enabled";
}