Mercurial > mplayer.hg
comparison libmenu/menu_filesel.c @ 33317:73ba433d4d28
Remove variable and code that was obviously forgotten when the
replace_path function was introduced.
Fixes a compiler warning about a variable that is set but never used.
author | reimar |
---|---|
date | Sat, 07 May 2011 19:09:13 +0000 |
parents | 8fa2f43cb760 |
children | caf85cf24a2e |
comparison
equal
deleted
inserted
replaced
33316:5d4c2ebf56ff | 33317:73ba433d4d28 |
---|---|
231 char **namelist, **tp; | 231 char **namelist, **tp; |
232 struct dirent *dp; | 232 struct dirent *dp; |
233 struct stat st; | 233 struct stat st; |
234 int n; | 234 int n; |
235 int path_fp; | 235 int path_fp; |
236 char* p = NULL; | |
237 list_entry_t* e; | 236 list_entry_t* e; |
238 DIR* dirp; | 237 DIR* dirp; |
239 char **extensions, **elem, *ext; | 238 char **extensions, **elem, *ext; |
240 | 239 |
241 menu_list_init(menu); | 240 menu_list_init(menu); |
242 | 241 |
243 free(mpriv->dir); | 242 free(mpriv->dir); |
244 mpriv->dir = strdup(args); | 243 mpriv->dir = strdup(args); |
245 if(mpriv->p.title && mpriv->p.title != mpriv->title && mpriv->p.title != cfg_dflt.p.title) | 244 if(mpriv->p.title && mpriv->p.title != mpriv->title && mpriv->p.title != cfg_dflt.p.title) |
246 free(mpriv->p.title); | 245 free(mpriv->p.title); |
247 p = strstr(mpriv->title,"%p"); | |
248 | 246 |
249 mpriv->p.title = replace_path(mpriv->title,mpriv->dir,0); | 247 mpriv->p.title = replace_path(mpriv->title,mpriv->dir,0); |
250 | 248 |
251 if ((dirp = opendir (mpriv->dir)) == NULL){ | 249 if ((dirp = opendir (mpriv->dir)) == NULL){ |
252 mp_msg(MSGT_GLOBAL,MSGL_ERR,MSGTR_LIBMENU_OpendirError, strerror(errno)); | 250 mp_msg(MSGT_GLOBAL,MSGL_ERR,MSGTR_LIBMENU_OpendirError, strerror(errno)); |