Mercurial > mplayer.hg
changeset 35515:ec1a2fc17ad1
Simplify condition.
author | ib |
---|---|
date | Wed, 05 Dec 2012 12:38:07 +0000 |
parents | a3ca6d31b29f |
children | 70a577baeccc |
files | gui/interface.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/interface.c Wed Dec 05 12:28:10 2012 +0000 +++ b/gui/interface.c Wed Dec 05 12:38:07 2012 +0000 @@ -874,7 +874,7 @@ if (!enqueue) listMgr(PLAYLIST_DELETE, 0); // delete playlist before "appending" - while ((filename = pt_iter_get_next_file(pt_iter)) != NULL) + while ((filename = pt_iter_get_next_file(pt_iter))) /* add it to end of list */ if (add_to_gui_playlist(filename, PLAYLIST_ITEM_APPEND)) added = True; @@ -899,7 +899,7 @@ curr = (plItem *)listMgr(PLAYLIST_ITEM_GET_CURR, 0); - while ((filename = pt_iter_get_next_file(pt_iter)) != NULL) + while ((filename = pt_iter_get_next_file(pt_iter))) /* insert it into the list and set plCurrent=new item */ if (add_to_gui_playlist(filename, PLAYLIST_ITEM_INSERT)) added = True;