From 38a6c891d3cdc9e4a990ecbde66aceb7bc2bb065 Mon Sep 17 00:00:00 2001 From: Keine_Ahnung Date: Wed, 26 Dec 2012 19:48:14 +0100 Subject: SVDRP Reply Codes fixed --- ripit.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3