libobs: Don't search '.' and '..' dirs for modules

On windows doing os_glob will also include '.' and '..', exclude these
when searching for modules.
This commit is contained in:
jp9000 2015-02-08 00:54:07 -08:00
parent bbd48c7bf2
commit 7e3efa86e5

View File

@ -253,6 +253,9 @@ static void process_found_module(struct obs_module_path *omp,
char *parsed_data_dir;
bool bin_found = true;
if (strcmp(path, ".") == 0 || strcmp(path, "..") == 0)
return;
file = strrchr(path, '/');
file = file ? (file + 1) : path;