X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fexamples%2Fserver.cpp;h=c696bb4cfd6d9e64e5b26add95fed37c28ac0331;hb=f9b1c1ed4abd53e375c84736f24a5bb54c764fae;hp=b82087f7224172a335de35ae0e2488848dcbebcb;hpb=27f0329aa8f434794f1f18e018fc3221e58b77a4;p=melted diff --git a/src/examples/server.cpp b/src/examples/server.cpp index b82087f..c696bb4 100644 --- a/src/examples/server.cpp +++ b/src/examples/server.cpp @@ -5,9 +5,11 @@ using namespace std; #include +#include +#include using namespace Mlt; -class Custom : public Miracle +class Custom : public Melted { private: Event *event; @@ -15,10 +17,10 @@ class Custom : public Miracle public: Custom( char *name = "Custom", int port = 5290, char *config = NULL ) : - Miracle( name, port, config ), + Melted( name, port, config ), event( NULL ) { - // Ensure that we receive the westley document before it's deserialised + // Ensure that we receive the MLT XML document before it's deserialised set( "push-parser-off", 1 ); } @@ -27,11 +29,11 @@ class Custom : public Miracle delete event; } - // Optional step - receive the westley document and do something with it + // Optional step - receive the MLT XML document and do something with it Response *received( char *command, char *document ) { cerr << document << endl; - Producer producer( profile, "westley-xml", document ); + Producer producer( profile, "xml-string", document ); return push( command, &producer ); } @@ -75,7 +77,7 @@ class Custom : public Miracle else { // Use the default command processing - response = Miracle::execute( command ); + response = Melted::execute( command ); } // If no event exists and the first unit has been added...