X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fwestley%2Fconsumer_westley.c;h=7f2048f8c84bf3c81cba11c8e3dd25b929149bf0;hb=845797debbd5cfdc3dc515595afa572727842bf2;hp=ebe504a2be79cbdf23e7b234553dd1fb6cf83859;hpb=74268cd86c30a0af9f03981c799aa4bba253c6e9;p=melted diff --git a/src/modules/westley/consumer_westley.c b/src/modules/westley/consumer_westley.c index ebe504a..7f2048f 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 } } } @@ -236,7 +233,7 @@ static void serialise_service( serialise_context context, mlt_service service, x char length[ 20 ]; length[ 19 ] = '\0'; xmlNode *entry = xmlNewChild( child, NULL, "blank", NULL ); - snprintf( length, 19, "%lld", info.frame_count ); + snprintf( length, 19, "%d", info.frame_count ); xmlNewProp( entry, "length", length ); } else @@ -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 );