mlt_profile.c: fix setting legacy MLT_NORMALISATION on mlt_environment
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1053
d19143bc-622f-0410-bfdd-
b5b2a6649095
char *mlt_environment( const char *name )
{
- return mlt_properties_get( global_properties, name );
+ if ( global_properties )
+ return mlt_properties_get( global_properties, name );
+ else
+ return NULL;
}
/** Set a value in the environment.
}
// 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" ) ||