From: ddennedy Date: Wed, 18 Feb 2004 17:26:18 +0000 (+0000) Subject: consumer_westley now only puts in/out as element attributes and not property elements X-Git-Url: http://research.m1stereo.tv/gitweb?a=commitdiff_plain;h=6405eb05b56e753e9ab7c9ac2c16826d3a0c0ec5;p=melted consumer_westley now only puts in/out as element attributes and not property elements git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@151 d19143bc-622f-0410-bfdd-b5b2a6649095 --- diff --git a/src/modules/westley/consumer_westley.c b/src/modules/westley/consumer_westley.c index ebe504a..437d9f4 100644 --- a/src/modules/westley/consumer_westley.c +++ b/src/modules/westley/consumer_westley.c @@ -91,16 +91,13 @@ static inline void serialise_properties( mlt_properties properties, xmlNode *nod if ( name != NULL && name[ 0 ] != '_' && mlt_properties_get_value( properties, i ) != NULL && - strcmp( name, "westley" ) != 0 ) + strcmp( name, "westley" ) != 0 && + strcmp( name, "in" ) != 0 && + strcmp( name, "out" ) != 0 ) { -#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; - xmlNewProp( p, mlt_properties_get_name( properties, i ), mlt_properties_get_value( properties, i ) ); -#endif } } } @@ -301,6 +298,8 @@ static void serialise_service( serialise_context context, mlt_service service, x { snprintf( id, ID_SIZE, "filter%d", context->filter_count++ ); xmlNewProp( child, "id", id ); + xmlNewProp( child, "in", mlt_properties_get( properties, "in" ) ); + xmlNewProp( child, "out", mlt_properties_get( properties, "out" ) ); } serialise_properties( properties, child ); @@ -323,6 +322,8 @@ static void serialise_service( serialise_context context, mlt_service service, x { snprintf( id, ID_SIZE, "transition%d", context->transition_count++ ); xmlNewProp( child, "id", id ); + xmlNewProp( child, "in", mlt_properties_get( properties, "in" ) ); + xmlNewProp( child, "out", mlt_properties_get( properties, "out" ) ); } serialise_properties( properties, child );