X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fframework%2Fmlt_factory.c;h=0b4508c505b2a8615fb1333cb989dd5edd48213f;hb=1a16869c02718e42807618ed5c7a37478dd9577c;hp=cd19b158df71a1af3e8a2ad83744fe032ab94953;hpb=d33f444d4ef4c7bc4074d07a49eca0ab7d108394;p=melted diff --git a/src/framework/mlt_factory.c b/src/framework/mlt_factory.c index cd19b15..0b4508c 100644 --- a/src/framework/mlt_factory.c +++ b/src/framework/mlt_factory.c @@ -147,7 +147,10 @@ char *mlt_environment( const char *name ) int mlt_environment_set( const char *name, const char *value ) { - return mlt_properties_set( global_properties, name, value ); + if ( global_properties ) + return mlt_properties_set( global_properties, name, value ); + else + return -1; } static void set_common_properties( mlt_properties properties, mlt_profile profile, const char *type, const char *service )