Mercurial > mplayer.hg
changeset 35494:9cc5a5de6aa1
Cosmetic: Choose better variable name.
author | ib |
---|---|
date | Tue, 04 Dec 2012 18:39:09 +0000 |
parents | 411875efca3f |
children | 78c44be4e671 |
files | gui/interface.c |
diffstat | 1 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/interface.c Tue Dec 04 18:36:14 2012 +0000 +++ b/gui/interface.c Tue Dec 04 18:39:09 2012 +0000 @@ -860,7 +860,7 @@ int guiPlaylistInitialize(play_tree_t *my_playtree, m_config_t *config, int enqueue) { play_tree_iter_t *my_pt_iter = NULL; - int result = False; + int added = False; if (!enqueue) listMgr(PLAYLIST_DELETE, 0); // delete playlist before "appending" @@ -869,7 +869,7 @@ while ((filename = pt_iter_get_next_file(my_pt_iter)) != NULL) /* add it to end of list */ if (add_to_gui_playlist(filename, PLAYLIST_ITEM_APPEND)) - result = True; + added = True; } uiCurr(); // update filename @@ -878,10 +878,10 @@ if (enqueue) filename = NULL; // don't start playing - if (result) + if (added) guiInfo.Track = 1; - return result; + return added; } // This function imports and inserts an playtree, that is created "on the fly", @@ -892,7 +892,7 @@ int guiPlaylistAdd(play_tree_t *my_playtree, m_config_t *config) { play_tree_iter_t *my_pt_iter = NULL; - int result = False; + int added = False; plItem *save; save = (plItem *)listMgr(PLAYLIST_ITEM_GET_CURR, 0); // save current item @@ -901,7 +901,7 @@ while ((filename = pt_iter_get_next_file(my_pt_iter)) != NULL) /* insert it into the list and set plCurrent=new item */ if (add_to_gui_playlist(filename, PLAYLIST_ITEM_INSERT)) - result = True; + added = True; pt_iter_destroy(&my_pt_iter); } @@ -911,12 +911,12 @@ else listMgr(PLAYLIST_ITEM_SET_CURR, listMgr(PLAYLIST_GET, 0)); // go to head, if plList was empty before - if (save && result) + if (save && added) listMgr(PLAYLIST_ITEM_DEL_CURR, 0); uiCurr(); // update filename - return result; + return added; } /* GUI -> MPlayer */