]> git.sesse.net Git - mlt/blobdiff - src/framework/mlt_profile.c
mlt_factory.c: guard against accessing mlt_environment before it is ready
[mlt] / src / framework / mlt_profile.c
index b9e230f68b834d5b85fdf72a2e1823c8e5de77b5..960550e8ce2c71d613ac0be249a8ba3b462a1a71 100644 (file)
@@ -144,7 +144,7 @@ mlt_profile mlt_profile_load_file( const char *file )
        }
 
        // Set MLT_NORMALISATION to appease legacy modules
-       char *profile_name = getenv( "MLT_PROFILE" );
+       char *profile_name = mlt_environment( "MLT_PROFILE" );
        if ( profile_name )
        {
                if ( strstr( profile_name, "_ntsc" ) ||