/** Memory leak checks.
*/
-#define _MLT_PROPERTY_CHECKS_
+//#define _MLT_PROPERTY_CHECKS_
#ifdef _MLT_PROPERTY_CHECKS_
static int properties_created = 0;
{
// Temp string
char temp[ 1024 ];
+ char last[ 1024 ] = "";
// Read each string from the file
while( fgets( temp, 1024, file ) )
// Chomp the string
temp[ strlen( temp ) - 1 ] = '\0';
+ // Check if the line starts with a .
+ if ( temp[ 0 ] == '.' )
+ {
+ char temp2[ 1024 ];
+ sprintf( temp2, "%s%s", last, temp );
+ strcpy( temp, temp2 );
+ }
+ else if ( strchr( temp, '=' ) )
+ {
+ strcpy( last, temp );
+ *( strchr( last, '=' ) ) = '\0';
+ }
+
// Parse and set the property
if ( strcmp( temp, "" ) && temp[ 0 ] != '#' )
mlt_properties_parse( this, temp );
for ( i = 0; i < list->count; i ++ )
if ( mlt_properties_get( this, list->name[ i ] ) != NULL )
fprintf( output, ", %s=%s", list->name[ i ], mlt_properties_get( this, list->name[ i ] ) );
+ else
+ fprintf( output, ", %s=%p", list->name[ i ], mlt_properties_get_data( this, list->name[ i ], NULL ) );
fprintf( output, " ]" );
}
fprintf( stderr, "\n" );