}
-mlt_producer producer_pixbuf_init( const char *filename )
+mlt_producer producer_pixbuf_init( char *filename )
{
producer_pixbuf this = calloc( sizeof( struct producer_pixbuf_s ), 1 );
- if ( this != NULL && mlt_producer_init( &this->parent, this ) == 0 )
+ if ( filename != NULL && this != NULL && mlt_producer_init( &this->parent, this ) == 0 )
{
mlt_producer producer = &this->parent;
mlt_properties properties = mlt_producer_properties( &this->parent );
// Set the default properties
+ mlt_properties_set( properties, "resource", filename );
mlt_properties_set_int( properties, "video_standard", mlt_video_standard_pal );
mlt_properties_set_double( properties, "ttl", 5 );
gap ++;
}
}
+ mlt_properties_set_timecode( properties, "out", this->count );
}
else if ( strstr( filename, "/.all." ) != NULL )
{
free( de[ i ] );
}
+ mlt_properties_set_timecode( properties, "out", this->count );
free( de );
free( dir_name );
}
{
this->filenames = realloc( this->filenames, sizeof( char * ) * ( this->count + 1 ) );
this->filenames[ this->count ++ ] = strdup( filename );
+ mlt_properties_set_timecode( properties, "out", 1 );
}
// Initialise gobject types