From: Dan Dennedy Date: Tue, 27 Sep 2011 01:00:34 +0000 (-0700) Subject: Fix regression loading profile. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=d85a86881c8bfd388cbceb3a9c0c7246c5ec9ba1;p=mlt 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(). --- 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 );