Mercurial > mplayer.hg
comparison gui/dialog/url.c @ 37083:ae4f30c4ef02
Determine size from variable declaration.
author | ib |
---|---|
date | Sat, 26 Apr 2014 16:32:53 +0000 |
parents | ad939f49bb28 |
children |
comparison
equal
deleted
inserted
replaced
37082:9e3b2b71a146 | 37083:ae4f30c4ef02 |
---|---|
72 | 72 |
73 uiSetFile(NULL, str, STREAMTYPE_STREAM); | 73 uiSetFile(NULL, str, STREAMTYPE_STREAM); |
74 listMgr(PLAYLIST_DELETE, 0); | 74 listMgr(PLAYLIST_DELETE, 0); |
75 add_to_gui_playlist(str, PLAYLIST_ITEM_APPEND); | 75 add_to_gui_playlist(str, PLAYLIST_ITEM_APPEND); |
76 | 76 |
77 item = calloc(1, sizeof(urlItem)); | 77 item = calloc(1, sizeof(*item)); |
78 | 78 |
79 if (item) { | 79 if (item) { |
80 item->url = str; | 80 item->url = str; |
81 listMgr(URLLIST_ITEM_ADD, item); | 81 listMgr(URLLIST_ITEM_ADD, item); |
82 } | 82 } |