X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fwestley%2Fconsumer_westley.c;h=29174be253b4eb0493b92568a7716cc95b7c2bd4;hb=42eea21bf0c71036397cac39f19d537c9344081c;hp=29e787cff78cfc393ee942804cceea32ac6c2e89;hpb=6fbad87cfc97a367c4e47216b83c9e433253aa9e;p=melted diff --git a/src/modules/westley/consumer_westley.c b/src/modules/westley/consumer_westley.c index 29e787c..29174be 100644 --- a/src/modules/westley/consumer_westley.c +++ b/src/modules/westley/consumer_westley.c @@ -18,7 +18,6 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include "consumer_westley.h" #include #include #include @@ -29,8 +28,8 @@ #define ID_SIZE 128 -#define _x (xmlChar*) -#define _s (char*) +#define _x (const xmlChar*) +#define _s (const char*) // This maintains counters for adding ids to elements struct serialise_context_s @@ -146,13 +145,13 @@ static char *westley_get_id( serialise_context context, mlt_service service, wes via the argument, but keep it simple. */ -mlt_consumer consumer_westley_init( char *arg ) +mlt_consumer consumer_westley_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg ) { // Create the consumer object mlt_consumer this = calloc( sizeof( struct mlt_consumer_s ), 1 ); // If no malloc'd and consumer init ok - if ( this != NULL && mlt_consumer_init( this, NULL ) == 0 ) + if ( this != NULL && mlt_consumer_init( this, NULL, profile ) == 0 ) { // Allow thread to be started/stopped this->start = consumer_start; @@ -201,7 +200,7 @@ static void serialise_properties( serialise_context context, mlt_properties prop } } -static void serialise_store_properties( serialise_context context, mlt_properties properties, xmlNode *node, char *store ) +static void serialise_store_properties( serialise_context context, mlt_properties properties, xmlNode *node, const char *store ) { int i; xmlNode *p;