[MPlayer-cvslog] r35609 - trunk/gui/interface.c

ib subversion at mplayerhq.hu
Wed Dec 5 13:38:07 CET 2012


Author: ib
Date: Wed Dec  5 13:38:07 2012
New Revision: 35609

Log:
Simplify condition.

Modified:
   trunk/gui/interface.c

Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c	Wed Dec  5 13:28:10 2012	(r35608)
+++ trunk/gui/interface.c	Wed Dec  5 13:38:07 2012	(r35609)
@@ -874,7 +874,7 @@ int guiPlaylist(int what, play_tree_t *p
         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 @@ int guiPlaylist(int what, play_tree_t *p
 
         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;


More information about the MPlayer-cvslog mailing list