{
// 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 );
return 0;
}
+/** Return the ref count of this object.
+*/
+
+int mlt_properties_ref_count( mlt_properties this )
+{
+ if ( this != NULL )
+ {
+ property_list *list = this->local;
+ return list->ref_count;
+ }
+ return 0;
+}
+
/** Allow the specification of a mirror.
*/