+
+ // Set MLT_NORMALISATION to appease legacy modules
+ char *profile_name = mlt_environment( "MLT_PROFILE" );
+ if ( strstr( profile_name, "_ntsc" ) ||
+ strstr( profile_name, "_atsc" ) ||
+ strstr( profile_name, "_60i" ) ||
+ strstr( profile_name, "_30p" ) )
+ {
+ mlt_environment_set( "MLT_NORMALISATION", "NTSC" );
+ }
+ else if ( strstr( profile_name, "_pal" ) ||
+ strstr( profile_name, "_50i" ) ||
+ strstr( profile_name, "_25p" ) )
+ {
+ mlt_environment_set( "MLT_NORMALISATION", "PAL" );
+ }
+