summaryrefslogtreecommitdiff
path: root/rotord/rendercontext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rotord/rendercontext.cpp')
-rw-r--r--rotord/rendercontext.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/rotord/rendercontext.cpp b/rotord/rendercontext.cpp
index fc410b2..776e842 100644
--- a/rotord/rendercontext.cpp
+++ b/rotord/rendercontext.cpp
@@ -197,29 +197,29 @@ void Render_context::session_command(const std::vector<std::string>& command,xml
if (state==IDLE) {
//direct call for testing
float framerate=25.0f;
- if (command.size()>2) {
- framerate=ofToFloat(command[3]);
- }
+ //if (command.size()>2) {
+ // framerate=ofToFloat(command[3]);
+ //}
string signal_xml;
if (graph.signal_render(signal_xml,framerate)){
status=HTTPResponse::HTTP_OK;
- XML.addValue("signal",signal_xml);
+ XML.addValue("signal",signal_xml); //this doesn't work
}
else {
status=HTTPResponse::HTTP_INTERNAL_SERVER_ERROR;
XML.addValue("error","could not render output signal");
}
- }
- else {
- status=HTTPResponse::HTTP_NOT_FOUND;
- XML.addValue("error","Signal output not found in graph");
- }
+ //else {
+ // status=HTTPResponse::HTTP_NOT_FOUND;
+ // XML.addValue("error","Signal output not found in graph");
+ //}
}
else {
status=HTTPResponse::HTTP_SERVICE_UNAVAILABLE;
XML.addValue("error","Context busy");
}
}
+ }
if (command[2]=="video") {
if (command[0]=="PUT") { //get vide file location and initiate analysis
if (command.size()>4) { //there should be a filename + a destination node