summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeine_Ahnung <no@mail.com>2012-12-26 19:48:14 +0100
committerKeine_Ahnung <no@mail.com>2012-12-26 19:48:14 +0100
commit38a6c891d3cdc9e4a990ecbde66aceb7bc2bb065 (patch)
treec994d16f7cb85ca7de89b4a98ac36df121bfa787
parent69672caa28f0395e6cc9c3ad1c1763af23624abd (diff)
downloadvdr-plugin-ripit-38a6c891d3cdc9e4a990ecbde66aceb7bc2bb065.tar.gz
vdr-plugin-ripit-38a6c891d3cdc9e4a990ecbde66aceb7bc2bb065.tar.bz2
SVDRP Reply Codes fixed
-rw-r--r--ripit.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ripit.c b/ripit.c
index 02244cd..72342ef 100644
--- a/ripit.c
+++ b/ripit.c
@@ -107,6 +107,7 @@ cString cPluginRipit::SVDRPCommand(const char *Command, const char *Option,
}
else {
ripitosd->Start_Encode();
+ ReplyCode = 900;
return "New rip process started";
}
}
@@ -117,17 +118,20 @@ cString cPluginRipit::SVDRPCommand(const char *Command, const char *Option,
}
else {
ripitosd->Abort_Encode(1);
+ ReplyCode = 900;
return "Rip process aborted";
}
}
else if(!strcasecmp(Command, "STATUS")) {
if(ripitosd->Rip_On())
+ ReplyCode = 920;
return "A rip process is running";
else
+ ReplyCode = 910;
return "No rip process is running";
}
else {
- ReplyCode = 502; return "Wrong command";
+ ReplyCode = 502; return "Command not implemented";
}
return NULL;
}