Mercurial > mplayer.hg
diff gui/interface.c @ 35511:6616645f91ea
Cosmetic: Adjust indent.
author | ib |
---|---|
date | Wed, 05 Dec 2012 12:00:52 +0000 |
parents | 06aa6dc71613 |
children | ce2cda8acb4e |
line wrap: on
line diff
--- a/gui/interface.c Wed Dec 05 11:51:08 2012 +0000 +++ b/gui/interface.c Wed Dec 05 12:00:52 2012 +0000 @@ -866,24 +866,24 @@ // - appending it to gui pl (enqueue=1) case GUI_PLAYLIST_INIT: - if (!enqueue) - listMgr(PLAYLIST_DELETE, 0); // delete playlist before "appending" + if (!enqueue) + listMgr(PLAYLIST_DELETE, 0); // delete playlist before "appending" - if ((my_pt_iter = pt_iter_create(&my_playtree, config))) { - 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)) - added = True; - } + if ((my_pt_iter = pt_iter_create(&my_playtree, config))) { + 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)) + added = True; + } - uiCurr(); // update filename - guiInfo.PlaylistNext = True; + uiCurr(); // update filename + guiInfo.PlaylistNext = True; - if (enqueue) - filename = NULL; // don't start playing + if (enqueue) + filename = NULL; // don't start playing - if (added) - guiInfo.Track = 1; + if (added) + guiInfo.Track = 1; break; @@ -894,26 +894,26 @@ // The file which contained the playlist is thereby replaced with it's contents. case GUI_PLAYLIST_ADD: - save = (plItem *)listMgr(PLAYLIST_ITEM_GET_CURR, 0); // save current item + save = (plItem *)listMgr(PLAYLIST_ITEM_GET_CURR, 0); // save current item - if ((my_pt_iter = pt_iter_create(&my_playtree, config))) { - 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)) - added = True; + if ((my_pt_iter = pt_iter_create(&my_playtree, config))) { + 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)) + added = True; - pt_iter_destroy(&my_pt_iter); - } + pt_iter_destroy(&my_pt_iter); + } - if (save) - listMgr(PLAYLIST_ITEM_SET_CURR, save); - else - listMgr(PLAYLIST_ITEM_SET_CURR, listMgr(PLAYLIST_GET, 0)); // go to head, if plList was empty before + if (save) + listMgr(PLAYLIST_ITEM_SET_CURR, save); + else + listMgr(PLAYLIST_ITEM_SET_CURR, listMgr(PLAYLIST_GET, 0)); // go to head, if plList was empty before - if (save && added) - listMgr(PLAYLIST_ITEM_DEL_CURR, 0); + if (save && added) + listMgr(PLAYLIST_ITEM_DEL_CURR, 0); - uiCurr(); // update filename + uiCurr(); // update filename break; }