extend USTA output with current clip start time and playlist duration
[melted] / src / mvcp / mvcp_remote.c
index d8d124d..8ad0e9d 100644 (file)
 #include <pthread.h>
 
 /* Application header files */
+#ifndef MVCP_EMBEDDED
 #include <framework/mlt.h>
+#else
+#define mlt_service void *
+#endif
 #include "mvcp_remote.h"
 #include "mvcp_socket.h"
 #include "mvcp_tokeniser.h"
@@ -196,7 +200,7 @@ static mvcp_response mvcp_remote_execute( mvcp_remote remote, char *command )
        return response;
 }
 
-/** Push a westley document to the server.
+/** Push a MLT XML document to the server.
 */
 
 static mvcp_response mvcp_remote_receive( mvcp_remote remote, char *command, char *buffer )
@@ -226,9 +230,10 @@ static mvcp_response mvcp_remote_receive( mvcp_remote remote, char *command, cha
 static mvcp_response mvcp_remote_push( mvcp_remote remote, char *command, mlt_service service )
 {
        mvcp_response response = NULL;
+#ifndef MVCP_EMBEDDED
        if ( service != NULL )
        {
-               mlt_consumer consumer = mlt_factory_consumer( NULL, "westley", "buffer" );
+               mlt_consumer consumer = mlt_factory_consumer( NULL, "xml", "buffer" );
                mlt_properties properties = MLT_CONSUMER_PROPERTIES( consumer );
                char *buffer = NULL;
                // Temporary hack
@@ -239,6 +244,7 @@ static mvcp_response mvcp_remote_push( mvcp_remote remote, char *command, mlt_se
                response = mvcp_remote_receive( remote, command, buffer );
                mlt_consumer_close( consumer );
        }
+#endif
        return response;
 }