]> git.sesse.net Git - mlt/blobdiff - src/framework/mlt_factory.c
mlt_profile.c, mlt_factory.c: bugfix loading profile by file specification and remove...
[mlt] / src / framework / mlt_factory.c
index 709dc5ebfa09d1033e08ee2d92f5e86205a63b9a..3d7759c5c22deccaeeeb576f54e1d332d50326d8 100644 (file)
@@ -116,10 +116,7 @@ int mlt_factory_init( const char *prefix )
                // Load the most appropriate profile
                // MLT_PROFILE preferred
                if ( getenv( "MLT_PROFILE" ) )
-               {
-                       if ( !mlt_profile_select( mlt_environment( "MLT_PROFILE" ) ) )
-                               mlt_profile_load_file( mlt_environment( "MLT_PROFILE" ) );
-               }
+                       mlt_profile_select( mlt_environment( "MLT_PROFILE" ) );
                // MLT_NORMALISATION backwards compatibility
                else if ( strcmp( mlt_environment( "MLT_NORMALISATION" ), "PAL" ) )
                        mlt_profile_select( "dv_ntsc" );