comparison gui/cfg.c @ 34610:4ff933a89818

Cosmetic: Rename functions in list.c. Additionally, change a parameter name of new listMgr() and add some doxygen comments to list.h.
author ib
date Sun, 12 Feb 2012 18:44:19 +0000
parents 04feb00f91be
children 97148652b0c6
comparison
equal deleted inserted replaced
34609:a8497c26c9f1 34610:4ff933a89818
289 289
290 item->path = strdup(line); 290 item->path = strdup(line);
291 291
292 if (fgetstr(line, sizeof(line), file) && *line) { 292 if (fgetstr(line, sizeof(line), file) && *line) {
293 item->name = strdup(line); 293 item->name = strdup(line);
294 listSet(gtkAddPlItem, item); 294 listMgr(gtkAddPlItem, item);
295 } else { 295 } else {
296 free(item->path); 296 free(item->path);
297 free(item); 297 free(item);
298 } 298 }
299 } 299 }
321 gmp_msg(MSGT_GPLAYER, MSGL_FATAL, MSGTR_MemAllocFailed); 321 gmp_msg(MSGT_GPLAYER, MSGL_FATAL, MSGTR_MemAllocFailed);
322 mplayer(MPLAYER_EXIT_GUI, EXIT_ERROR, 0); 322 mplayer(MPLAYER_EXIT_GUI, EXIT_ERROR, 0);
323 } 323 }
324 324
325 item->url = strdup(line); 325 item->url = strdup(line);
326 listSet(gtkAddURLItem, item); 326 listMgr(gtkAddURLItem, item);
327 } 327 }
328 328
329 fclose(file); 329 fclose(file);
330 } 330 }
331 331