-include ../config.mak
+include ../../config.mak
-CXXFLAGS+=-Wall -g `pkg-config mlt-framework --cflags` -I ../src
-LDFLAGS+=-L../src -lmlt++ -lmiracle -lvalerie `pkg-config mlt-framework --libs`
+CXXFLAGS += -Wall -g -I.. -I../melted++ `pkg-config mlt++ --cflags`
+LDFLAGS += -L../melted++ -lmelted++ -L../melted -lmelted -L../mvcp -lmvcp `pkg-config mlt++ --libs`
CC=c++
-all: play server
-
-play: play.o
-
-play.o: play.cpp
+all: server
server: server.o
server.o: server.cpp
clean:
- $(RM) play play.o
$(RM) server server.o
distclean: clean
using namespace std;
#include <Mlt.h>
+#include <MltMelted.h>
+#include <MltResponse.h>
using namespace Mlt;
-class Custom : public Miracle
+class Custom : public Melted
{
private:
Event *event;
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 );
}
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 );
}
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...