X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fframework%2Fmlt_properties.c;fp=src%2Fframework%2Fmlt_properties.c;h=47e7fb057500a93989f2ea87f3783bd5964a038d;hb=16b6d374cf80004b192aae74a55b0452c7ee809d;hp=c90c13294433b2e13f085e580365fc1b902747ef;hpb=f0f9e433051b21e14471bb48bc5d140e6c2b14c5;p=melted diff --git a/src/framework/mlt_properties.c b/src/framework/mlt_properties.c index c90c132..47e7fb0 100644 --- a/src/framework/mlt_properties.c +++ b/src/framework/mlt_properties.c @@ -844,7 +844,9 @@ int mlt_properties_dir_list( mlt_properties this, const char *dirname, const cha { sprintf( key, "%d", mlt_properties_count( this ) ); snprintf( fullname, 1024, "%s/%s", dirname, de->d_name ); - if ( de->d_name[ 0 ] != '.' && mlt_fnmatch( pattern, de->d_name ) ) + if ( pattern == NULL ) + mlt_properties_set( this, key, fullname ); + else if ( de->d_name[ 0 ] != '.' && mlt_fnmatch( pattern, de->d_name ) ) mlt_properties_set( this, key, fullname ); de = readdir( dir ); }