From 674173fb17ca25b1b35d6482de6f603cc3d8209c Mon Sep 17 00:00:00 2001 From: Comment Date: Thu, 5 Dec 2013 01:36:58 +0000 Subject: signal output --- rotord/src/rendercontext.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'rotord/src/rendercontext.cpp') diff --git a/rotord/src/rendercontext.cpp b/rotord/src/rendercontext.cpp index 2f07c89..e73f0d3 100644 --- a/rotord/src/rendercontext.cpp +++ b/rotord/src/rendercontext.cpp @@ -296,13 +296,11 @@ void Render_context::session_command(const Session_command& command,xmlIO& XML,H if (command.commands[1]=="signal") { if (command.method=="GET") { //generate xml from 1st signal output if (state==IDLE) { - //direct call for testing - float framerate=25.0f; - //if (command.size()>2) { - // framerate=toFloat(command.id); - //} - //string signal_xml; - if (graph.signal_render(XML,framerate)){ + if (command.commands.size()>2) { + float framerate; + framerate=toFloat(command.body); + if (framerate==0.0f) framerate=graph.framerate; + if (graph.signal_render(XML,command.commands[2],framerate)){ status=HTTPResponse::HTTP_OK; logger.information("rendering signal to xml"); //XML.addValue("signal",signal_xml); //this doesn't work >> pseudo xml @@ -316,6 +314,7 @@ void Render_context::session_command(const Session_command& command,xmlIO& XML,H // status=HTTPResponse::HTTP_NOT_FOUND; // XML.addValue("error","Signal output not found in graph"); //} + } } else { status=HTTPResponse::HTTP_SERVICE_UNAVAILABLE; -- cgit v1.2.3