*/
static char *mlt_prefix = NULL;
+static mlt_properties global_properties = NULL;
static mlt_properties object_list = NULL;
static mlt_repository producers = NULL;
static mlt_repository filters = NULL;
// Initialise the pool
mlt_pool_init( );
+ // Create the global properties
+ global_properties = mlt_properties_new( );
+ mlt_properties_set( global_properties, "MLT_NORMALISATION", getenv( "MLT_NORMALISATION" ) );
+
// Create the object list.
object_list = mlt_properties_new( );
return mlt_prefix;
}
+/** Get a value from the environment.
+*/
+
+char *mlt_environment( char *name )
+{
+ return mlt_properties_get( global_properties, name );
+}
+
/** Fetch a producer from the repository.
*/
mlt_repository_close( transitions );
mlt_repository_close( consumers );
mlt_properties_close( object_list );
+ mlt_properties_close( global_properties );
free( mlt_prefix );
mlt_prefix = NULL;
mlt_pool_close( );