X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fwestley%2Fconsumer_westley.c;h=c1e68c19974a89e9b7f838b30cadb8eed66db1c0;hb=9150f2fbb3b860cf68e522dae95aad7509302da1;hp=be075e8ab248e5ec3d8a20498974f7098ff0951a;hpb=42bd0aedb6d3d65bedb98479adcdbaeb326dfee9;p=melted diff --git a/src/modules/westley/consumer_westley.c b/src/modules/westley/consumer_westley.c index be075e8..c1e68c1 100644 --- a/src/modules/westley/consumer_westley.c +++ b/src/modules/westley/consumer_westley.c @@ -32,6 +32,7 @@ */ static int consumer_start( mlt_consumer parent ); +static int consumer_is_stopped( mlt_consumer this ); /** This is what will be called by the factory - anything can be passed in via the argument, but keep it simple. @@ -50,6 +51,7 @@ mlt_consumer consumer_westley_init( char *arg ) // Allow thread to be started/stopped this->start = consumer_start; + this->is_stopped = consumer_is_stopped; mlt_properties_set( mlt_consumer_properties( this ), "resource", arg ); @@ -94,12 +96,14 @@ static inline void serialise_properties( mlt_properties properties, xmlNode *nod mlt_properties_get_value( properties, i ) != NULL && strcmp( name, "westley" ) != 0 ) { -#if 0 - p = xmlNewChild( node, NULL, "prop", NULL ); +#if 1 + p = xmlNewChild( node, NULL, "property", NULL ); + xmlNewProp( p, "name", mlt_properties_get_name( properties, i ) ); + xmlNodeSetContent( p, mlt_properties_get_value( properties, i ) ); #else p = node; -#endif xmlNewProp( p, mlt_properties_get_name( properties, i ), mlt_properties_get_value( properties, i ) ); +#endif } } } @@ -378,10 +382,11 @@ static int consumer_start( mlt_consumer this ) xmlFreeDoc( doc ); mlt_consumer_stop( this ); - // Tell inigo, enough already! - if ( inigo != NULL ) - mlt_properties_set_int( mlt_service_properties( inigo ), "done", 1 ); - return 0; } +static int consumer_is_stopped( mlt_consumer this ) +{ + return 1; +} +