rework of libmenu open_dir()

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25323 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ben 2007-12-08 16:27:25 +00:00
parent 3942e8143b
commit b4052eae79
1 changed files with 8 additions and 2 deletions

View File

@ -180,7 +180,7 @@ static void free_extensions(char **extensions){
}
}
static int open_dir(menu_t* menu,char* args) {
static int _open_dir(menu_t* menu,char* args) {
char **namelist, **tp;
struct dirent *dp;
struct stat st;
@ -291,7 +291,13 @@ bailout:
return 1;
}
static int open_dir(menu_t* menu,char* args) {
if (_open_dir(menu, args))
return 1;
if (menu_chroot && _open_dir(menu, menu_chroot))
return 1;
return 0;
}
static char *action;