From 9443710b2ff2a21ac0b836d8f2f6a40366a8f5ce Mon Sep 17 00:00:00 2001 From: rofafor Date: Thu, 12 Mar 2009 17:29:13 +0000 Subject: Added QMSC command. --- xineliboutput.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/xineliboutput.c b/xineliboutput.c index 33eb8c16..fbd5b1b4 100644 --- a/xineliboutput.c +++ b/xineliboutput.c @@ -21,7 +21,7 @@ * * xineliboutput.c: VDR Plugin interface * - * $Id: xineliboutput.c,v 1.37 2008-11-20 11:46:31 rofafor Exp $ + * $Id: xineliboutput.c,v 1.38 2009-03-12 17:29:13 rofafor Exp $ * */ @@ -282,6 +282,8 @@ const char **cPluginXinelibOutput::SVDRPHelpPages(void) " Play music file.", "PIMG \n" " Play/show image file.", + "QMSC \n" + " Queue music file to playlist.", NULL }; return HelpPages; @@ -332,6 +334,16 @@ cString cPluginXinelibOutput::SVDRPCommand(const char *Command, const char *Opti } } + else if(strcasecmp(Command, "QMSC") == 0) { + if(*Option) { + LOGMSG("SVDRP(%s, %s)", Command, Option); + cXinelibPlayerControl::Queue(Option); + return cString("Queueing music file"); + } else { + ReplyCode = 550; // Requested action not taken + } + } + return NULL; } -- cgit v1.2.3