X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=mlt%2Fsrc%2Fmodules%2Fgtk2%2Fproducer_pixbuf.c;h=f1f1f45fe10d38cfce0342d7fe6e6a249e535acf;hb=9390e8b584f3f717f0a326893c0e37cf187a0a51;hp=06b32c652d76c132d1bb50a781d29c1eea4b62d9;hpb=35aa3217c6ad838d1612875e3efdb0c99e4fd639;p=melted diff --git a/mlt/src/modules/gtk2/producer_pixbuf.c b/mlt/src/modules/gtk2/producer_pixbuf.c index 06b32c6..f1f1f45 100644 --- a/mlt/src/modules/gtk2/producer_pixbuf.c +++ b/mlt/src/modules/gtk2/producer_pixbuf.c @@ -49,10 +49,10 @@ static int filter_files( const struct dirent *de ) } -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; @@ -63,6 +63,7 @@ mlt_producer producer_pixbuf_init( const char *filename ) 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 ); @@ -90,7 +91,6 @@ mlt_producer producer_pixbuf_init( const char *filename ) } } mlt_properties_set_timecode( properties, "out", this->count ); - mlt_properties_set_timecode( properties, "playtime", this->count ); } else if ( strstr( filename, "/.all." ) != NULL ) { @@ -118,7 +118,6 @@ mlt_producer producer_pixbuf_init( const char *filename ) } mlt_properties_set_timecode( properties, "out", this->count ); - mlt_properties_set_timecode( properties, "playtime", this->count ); free( de ); free( dir_name ); } @@ -127,7 +126,6 @@ mlt_producer producer_pixbuf_init( const char *filename ) this->filenames = realloc( this->filenames, sizeof( char * ) * ( this->count + 1 ) ); this->filenames[ this->count ++ ] = strdup( filename ); mlt_properties_set_timecode( properties, "out", 1 ); - mlt_properties_set_timecode( properties, "playtime", 1 ); } // Initialise gobject types