strcmp( name, "height" ) != 0 )
{
char *value = mlt_properties_get_value( properties, i );
- if ( strcmp( context->root, "" ) && !strncmp( value, context->root, strlen( context->root ) ) )
- value += strlen( context->root ) + 1;
+ int rootlen = strlen( context->root );
+ if ( rootlen && !strncmp( value, context->root, rootlen ) && value[ rootlen ] == '/' )
+ value += rootlen + 1;
p = xmlNewTextChild( node, NULL, _x("property"), _x(value) );
xmlNewProp( p, _x("name"), _x(name) );
}
char *value = mlt_properties_get_value( properties, i );
if ( value != NULL )
{
- if ( strcmp( context->root, "" ) && !strncmp( value, context->root, strlen( context->root ) ) )
- value += strlen( context->root ) + 1;
+ int rootlen = strlen( context->root );
+ if ( rootlen && !strncmp( value, context->root, rootlen ) && value[ rootlen ] == '/' )
+ value += rootlen + 1;
p = xmlNewTextChild( node, NULL, _x("property"), _x(value) );
xmlNewProp( p, _x("name"), _x(name) );
}