[MPlayer-cvslog] r35596 - trunk/gui/win32/interface.c

ib subversion at mplayerhq.hu
Tue Dec 4 21:10:10 CET 2012


Author: ib
Date: Tue Dec  4 21:10:10 2012
New Revision: 35596

Log:
Cosmetic: Choose better variable name in Win32 GUI.

This has been forgotten in r35588.

Modified:
   trunk/gui/win32/interface.c

Modified: trunk/gui/win32/interface.c
==============================================================================
--- trunk/gui/win32/interface.c	Tue Dec  4 21:06:43 2012	(r35595)
+++ trunk/gui/win32/interface.c	Tue Dec  4 21:10:10 2012	(r35596)
@@ -849,7 +849,7 @@ static int import_file_into_gui(char *pa
 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(!mygui) guiInit();
 
@@ -858,14 +858,14 @@ int guiPlaylistInitialize(play_tree_t *m
         while ((filename = pt_iter_get_next_file(my_pt_iter)) != NULL)
         {
             if (parse_filename(filename, my_playtree, config, 0))
-                result = TRUE;
+                added = TRUE;
             else if (import_file_into_gui(filename, 0)) /* Add it to end of list */
-                result = TRUE;
+                added = TRUE;
         }
     }
     guiInfo.PlaylistNext = TRUE;
 
-    if (result)
+    if (added)
     {
         mygui->playlist->current = 0;
         uiSetFile(NULL, mygui->playlist->tracks[0]->filename, STREAMTYPE_FILE);
@@ -873,7 +873,7 @@ int guiPlaylistInitialize(play_tree_t *m
 
     if (enqueue) filename = NULL;
 
-    return result;
+    return added;
 }
 
 /* This function imports and inserts an playtree, that is created "on the fly", for example by
@@ -883,16 +883,16 @@ int guiPlaylistInitialize(play_tree_t *m
 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;
 
     if((my_pt_iter = pt_iter_create(&my_playtree, config)))
     {
         while ((filename = pt_iter_get_next_file(my_pt_iter)) != NULL)
             if (import_file_into_gui(filename, 1)) /* insert it into the list and set plCurrent = new item */
-                result = TRUE;
+                added = TRUE;
         pt_iter_destroy(&my_pt_iter);
     }
-    return result;
+    return added;
 }
 
 static int update_videowindow(void)


More information about the MPlayer-cvslog mailing list