summaryrefslogtreecommitdiff
path: root/rotord
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2013-09-03 17:16:36 +0100
committerTim Redfern <tim@eclectronics.org>2013-09-03 17:16:36 +0100
commiteea93067d98b693e5ff30bd4a5608a5a087f46a1 (patch)
tree19ba0dca4129f7a62cdfbac3b3635170d050c911 /rotord
parentf84aea7f9dac2c01f917aaebd8c95ea3446d8bee (diff)
change blocking pattern
Diffstat (limited to 'rotord')
-rw-r--r--rotord/src/rendercontext.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/rotord/src/rendercontext.cpp b/rotord/src/rendercontext.cpp
index 57d661f..d160527 100644
--- a/rotord/src/rendercontext.cpp
+++ b/rotord/src/rendercontext.cpp
@@ -70,7 +70,7 @@ void Render_context::session_command(const Session_command& command,xmlIO& XML,H
if (command.commands[1]=="resolution") {
if (command.method=="PUT") {
if (command.body!="") {
- if (state=!RENDERING) {
+ if (state!=RENDERING) {
Poco::StringTokenizer t1(command.body,",");
if (t1.count()>1){
int w=ofToInt(t1[0]);
@@ -264,7 +264,7 @@ void Render_context::session_command(const Session_command& command,xmlIO& XML,H
if (command.commands[1]=="video") {
if (command.method=="PUT") { //get vide file location and initiate analysis
if (command.body!="") { //there should be a filename + a destination node
- if (state=!RENDERING) {
+ if (state!=RENDERING) {
string video_filename=media_dir+command.body;
//check file exists
Poco::File f=Poco::File(video_filename);
@@ -308,7 +308,7 @@ void Render_context::session_command(const Session_command& command,xmlIO& XML,H
}
if (command.commands[1]=="preview") {
if (command.method=="GET") {
- if(state=!RENDERING){
+ if(state!=RENDERING){
//parse json to get preview spec, return XML? this is a mess
string preview_node=command.commands[2];
Json::Value root; // will contains the root value after parsing.
@@ -349,7 +349,7 @@ void Render_context::session_command(const Session_command& command,xmlIO& XML,H
}
if (command.commands[1]=="features") {
if (command.method=="GET") {
- if(state=!RENDERING){
+ if(state!=RENDERING){
//parse json to get preview spec, return XML? this is a mess
string features_node=command.commands[2];
if (graph.print_features(XML,features_node)) {