Mercurial > mplayer.hg
comparison gui/cfg.c @ 34584:500ea19f03eb
Check for playlist errors (path, but no file).
author | ib |
---|---|
date | Thu, 09 Feb 2012 14:52:22 +0000 |
parents | 8e4cafa03bd4 |
children | 60bf43f94f17 |
comparison
equal
deleted
inserted
replaced
34583:8e4cafa03bd4 | 34584:500ea19f03eb |
---|---|
282 gmp_msg(MSGT_GPLAYER, MSGL_FATAL, MSGTR_MemAllocFailed); | 282 gmp_msg(MSGT_GPLAYER, MSGL_FATAL, MSGTR_MemAllocFailed); |
283 mplayer(MPLAYER_EXIT_GUI, EXIT_ERROR, 0); | 283 mplayer(MPLAYER_EXIT_GUI, EXIT_ERROR, 0); |
284 } | 284 } |
285 | 285 |
286 item->path = strdup(line); | 286 item->path = strdup(line); |
287 fgetstr(line, sizeof(line), file); | 287 |
288 if (fgetstr(line, sizeof(line), file)) { | |
288 item->name = strdup(line); | 289 item->name = strdup(line); |
289 listSet(gtkAddPlItem, item); | 290 listSet(gtkAddPlItem, item); |
291 } else { | |
292 free(item->path); | |
293 free(item); | |
294 } | |
290 } | 295 } |
291 | 296 |
292 fclose(file); | 297 fclose(file); |
293 } | 298 } |
294 | 299 |