From d85a86881c8bfd388cbceb3a9c0c7246c5ec9ba1 Mon Sep 17 00:00:00 2001 From: Dan Dennedy Date: Mon, 26 Sep 2011 18:00:34 -0700 Subject: [PATCH] Fix regression loading profile. Also, prefer mlt_environment(MLT_DATA) over $datadir to make indirection possible with MLT_DATA environment variable and to be consistent with mlt_profile_list(). --- src/framework/mlt_profile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/framework/mlt_profile.c b/src/framework/mlt_profile.c index f0fc02c5..66f76012 100644 --- a/src/framework/mlt_profile.c +++ b/src/framework/mlt_profile.c @@ -29,7 +29,7 @@ /** the default subdirectory of the datadir for holding profiles */ -#define PROFILES_DIR "/profiles" +#define PROFILES_DIR "/profiles/" /** Load a profile from the system folder. * @@ -56,7 +56,7 @@ static mlt_profile mlt_profile_select( const char *name ) // Load from $datadir/mlt/profiles else if ( prefix == NULL ) { - prefix = MLTDATADIR; + prefix = mlt_environment( "MLT_DATA" ); filename = calloc( 1, strlen( prefix ) + strlen( PROFILES_DIR ) + strlen( name ) + 1 ); strcpy( filename, prefix ); strcat( filename, PROFILES_DIR ); -- 2.39.2