mlt_consumer.c: bugfix removal of property-changed listener
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1019
d19143bc-622f-0410-bfdd-
b5b2a6649095
mlt_profile_select( mlt_properties_get( properties, "profile" ) );
// Stop listening to this
- mlt_event_close( g_event_listener );
- g_event_listener = NULL;
+ mlt_event_block( g_event_listener );
// Apply to properties
apply_profile_properties( mlt_profile_get(), properties );
mlt_profile mlt_profile_select( const char *name )
{
const char *prefix = PREFIX;
- char *filename = calloc( 1, strlen( prefix ) + strlen( PROFILES_DIR ) + strlen( name ) + 1 );
+ char *filename = calloc( 1, strlen( prefix ) + strlen( PROFILES_DIR ) + strlen( name ) + 2 );
strcpy( filename, prefix );
if ( filename[ strlen( filename ) - 1 ] != '/' )
filename[ strlen( filename ) ] = '/';