strcmp( name, "in" ) != 0 &&
strcmp( name, "out" ) != 0 &&
strcmp( name, "id" ) != 0 &&
+ strcmp( name, "title" ) != 0 &&
strcmp( name, "root" ) != 0 &&
strcmp( name, "width" ) != 0 &&
strcmp( name, "height" ) != 0 )
{
char *value = mlt_properties_get_value( properties, i );
- p = xmlNewChild( node, NULL, "property", NULL );
- xmlNewProp( p, "name", mlt_properties_get_name( properties, i ) );
if ( strcmp( context->root, "" ) && !strncmp( value, context->root, strlen( context->root ) ) )
- xmlNodeSetContent( p, value + strlen( context->root ) + 1 );
- else
- xmlNodeSetContent( p, value );
+ value += strlen( context->root ) + 1;
+ p = xmlNewTextChild( node, NULL, "property", value );
+ xmlNewProp( p, "name", name );
}
}
}
char *value = mlt_properties_get_value( properties, i );
if ( value != NULL )
{
- p = xmlNewChild( node, NULL, "property", NULL );
- xmlNewProp( p, "name", mlt_properties_get_name( properties, i ) );
- if ( context->root != NULL && strcmp( context->root, "" ) && !strncmp( value, context->root, strlen( context->root ) ) )
- xmlNodeSetContent( p, value + strlen( context->root ) + 1 );
- else
- xmlNodeSetContent( p, value );
+ if ( strcmp( context->root, "" ) && !strncmp( value, context->root, strlen( context->root ) ) )
+ value += strlen( context->root ) + 1;
+ p = xmlNewTextChild( node, NULL, "property", value );
+ xmlNewProp( p, "name", name );
}
}
}
int out = mlt_properties_get_position( properties, "out" );
p = xmlNewChild( node, NULL, "filter", NULL );
xmlNewProp( p, "id", id );
+ if ( mlt_properties_get( properties, "title" ) )
+ xmlNewProp( p, "title", mlt_properties_get( properties, "title" ) );
if ( in != 0 || out != 0 )
{
char temp[ 20 ];
// Set the id
xmlNewProp( child, "id", id );
+ if ( mlt_properties_get( properties, "title" ) )
+ xmlNewProp( child, "title", mlt_properties_get( properties, "title" ) );
xmlNewProp( child, "in", mlt_properties_get( properties, "in" ) );
xmlNewProp( child, "out", mlt_properties_get( properties, "out" ) );
serialise_properties( context, properties, child );
// Set the id
xmlNewProp( child, "id", id );
+ if ( mlt_properties_get( properties, "title" ) )
+ xmlNewProp( child, "title", mlt_properties_get( properties, "title" ) );
// Store application specific properties
serialise_store_properties( context, properties, child, context->store );
// Set the id
xmlNewProp( child, "id", id );
+ if ( mlt_properties_get( properties, "title" ) )
+ xmlNewProp( child, "title", mlt_properties_get( properties, "title" ) );
+ if ( mlt_properties_get( properties, "global_feed" ) )
+ xmlNewProp( child, "global_feed", mlt_properties_get( properties, "global_feed" ) );
xmlNewProp( child, "in", mlt_properties_get( properties, "in" ) );
xmlNewProp( child, "out", mlt_properties_get( properties, "out" ) );
// Set the id
xmlNewProp( child, "id", id );
+ if ( mlt_properties_get( properties, "title" ) )
+ xmlNewProp( child, "title", mlt_properties_get( properties, "title" ) );
xmlNewProp( child, "in", mlt_properties_get( properties, "in" ) );
xmlNewProp( child, "out", mlt_properties_get( properties, "out" ) );
// Set the id
xmlNewProp( child, "id", id );
+ if ( mlt_properties_get( properties, "title" ) )
+ xmlNewProp( child, "title", mlt_properties_get( properties, "title" ) );
xmlNewProp( child, "in", mlt_properties_get( properties, "in" ) );
xmlNewProp( child, "out", mlt_properties_get( properties, "out" ) );
if ( strcmp( mlt_type, "producer" ) == 0 )
{
char *mlt_service = mlt_properties_get( properties, "mlt_service" );
- if ( mlt_properties_get( properties, "westley" ) == NULL && !strcmp( mlt_service, "tractor" ) )
+ if ( mlt_properties_get( properties, "westley" ) == NULL && ( mlt_service != NULL && !strcmp( mlt_service, "tractor" ) ) )
{
context->pass = 0;
serialise_tractor( context, service, node );
// Assign a title property
if ( mlt_properties_get( properties, "title" ) != NULL )
xmlNewProp( root, "title", mlt_properties_get( properties, "title" ) );
+ mlt_properties_set_int( properties, "global_feed", 1 );
// Construct the context maps
context->id_map = mlt_properties_new();
{
xmlChar *buffer = NULL;
int length = 0;
- xmlDocDumpMemory( doc, &buffer, &length );
+ xmlDocDumpMemoryEnc( doc, &buffer, &length, "utf-8" );
mlt_properties_set( properties, resource, buffer );
xmlFree( buffer );
}
else
{
- xmlSaveFormatFile( resource, doc, 1 );
+ xmlSaveFormatFileEnc( resource, doc, "utf-8", 1 );
}
// Close the document