X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fframework%2Fmlt_factory.c;fp=src%2Fframework%2Fmlt_factory.c;h=709dc5ebfa09d1033e08ee2d92f5e86205a63b9a;hb=d57832919959e117a68d856b172c090746fc3399;hp=124526575533c3242c31c14734cf2b1f7999243a;hpb=2c3bf9c72ca4986dee0d6abcefb9227d7172c7cf;p=melted diff --git a/src/framework/mlt_factory.c b/src/framework/mlt_factory.c index 1245265..709dc5e 100644 --- a/src/framework/mlt_factory.c +++ b/src/framework/mlt_factory.c @@ -125,20 +125,6 @@ int mlt_factory_init( const char *prefix ) mlt_profile_select( "dv_ntsc" ); else mlt_profile_select( "dv_pal" ); - - // destroy an invalid profile so it can be constructed from hard defauls - if ( mlt_profile_get()->width == 0 ) - mlt_profile_close(); - - // Set MLT_NORMALISATION to appease legacy modules - if ( !getenv( "MLT_NORMALISATION" ) ) - { - const char *profile = mlt_profile_get()->name; - if ( strstr( profile, "_ntsc" ) || strstr( profile, "_atsc" ) ) - setenv( "MLT_NORMALISATION", "NTSC", 1 ); - else if ( strstr( profile, "_pal" ) ) - setenv( "MLT_NORMALISATION", "PAL", 1 ); - } } @@ -169,6 +155,14 @@ char *mlt_environment( const char *name ) return mlt_properties_get( global_properties, name ); } +/** Set a value in the environment. +*/ + +int mlt_environment_set( const char *name, const char *value ) +{ + return mlt_properties_set( global_properties, name, value ); +} + /** Fetch a producer from the repository. */