Mercurial > mplayer.hg
changeset 35519:7f1be403a640
Don't unnecessarily use global MPlayer variable filename.
Use a local variable instead.
author | ib |
---|---|
date | Wed, 05 Dec 2012 22:55:02 +0000 |
parents | 7d695302b856 |
children | ecbaf301748f |
files | gui/interface.c |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/interface.c Wed Dec 05 13:14:42 2012 +0000 +++ b/gui/interface.c Wed Dec 05 22:55:02 2012 +0000 @@ -868,6 +868,7 @@ int guiPlaylist(int what, play_tree_t *playtree, m_config_t *config, int enqueue) { play_tree_iter_t *pt_iter; + const char *file; int added = False; plItem *curr; @@ -882,8 +883,8 @@ if (!enqueue) listMgr(PLAYLIST_DELETE, 0); - while ((filename = pt_iter_get_next_file(pt_iter))) - if (add_to_gui_playlist(filename, PLAYLIST_ITEM_APPEND)) + while ((file = pt_iter_get_next_file(pt_iter))) + if (add_to_gui_playlist(file, PLAYLIST_ITEM_APPEND)) added = True; uiCurr(); // update filename @@ -901,8 +902,8 @@ curr = listMgr(PLAYLIST_ITEM_GET_CURR, 0); - while ((filename = pt_iter_get_next_file(pt_iter))) - if (add_to_gui_playlist(filename, PLAYLIST_ITEM_INSERT)) + while ((file = pt_iter_get_next_file(pt_iter))) + if (add_to_gui_playlist(file, PLAYLIST_ITEM_INSERT)) added = True; if (curr)