]> git.sesse.net Git - mlt/commitdiff
Fix regression loading profile.
authorDan Dennedy <dan@dennedy.org>
Tue, 27 Sep 2011 01:00:34 +0000 (18:00 -0700)
committerDan Dennedy <dan@dennedy.org>
Tue, 27 Sep 2011 01:00:34 +0000 (18:00 -0700)
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

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 );