comparison vamp-sdk/hostext/PluginLoader.cpp @ 131:761d248f0198

* DT_REG really isn't as common as I'd thought, and we don't really care
author cannam
date Wed, 19 Mar 2008 22:42:11 +0000
parents 44e6b94c2696
children a6cfe3d9f752
comparison
equal deleted inserted replaced
130:44e6b94c2696 131:761d248f0198
583 if (!d) return files; 583 if (!d) return files;
584 584
585 struct dirent *e = 0; 585 struct dirent *e = 0;
586 while ((e = readdir(d))) { 586 while ((e = readdir(d))) {
587 587
588 if (!(e->d_type & DT_REG) && (e->d_type != DT_UNKNOWN)) continue;
589
590 if (!e->d_name) continue; 588 if (!e->d_name) continue;
591 589
592 size_t len = strlen(e->d_name); 590 size_t len = strlen(e->d_name);
593 if (len < extlen + 2 || 591 if (len < extlen + 2 ||
594 e->d_name + len - extlen - 1 != "." + extension) { 592 e->d_name + len - extlen - 1 != "." + extension) {