]> git.sesse.net Git - mlt/blobdiff - src/framework/mlt_profile.c
Fix regression loading profile.
[mlt] / src / framework / mlt_profile.c
index f0fc02c58c3817a1235de5c8b01e393b884665a6..66f76012aee88f0d89807078e78114230dc7247b 100644 (file)
@@ -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 );