[MPlayer-cvslog] r33163 - trunk/gui/skin/skin.c

ib subversion at mplayerhq.hu
Thu Mar 31 11:03:53 CEST 2011


Author: ib
Date: Thu Mar 31 11:03:53 2011
New Revision: 33163

Log:
Leave loop after item function has been found and called.

Modified:
   trunk/gui/skin/skin.c

Modified: trunk/gui/skin/skin.c
==============================================================================
--- trunk/gui/skin/skin.c	Thu Mar 31 10:56:52 2011	(r33162)
+++ trunk/gui/skin/skin.c	Thu Mar 31 11:03:53 2011	(r33163)
@@ -906,10 +906,14 @@ int skinRead(char *dname)
         cutItem(tmp, param, '=', 1);
         strlower(item);
 
-        for (i = 0; i < FF_ARRAY_ELEMS(skinItem); i++)
-            if (!strcmp(item, skinItem[i].name))
+        for (i = 0; i < FF_ARRAY_ELEMS(skinItem); i++) {
+            if (!strcmp(item, skinItem[i].name)) {
                 if (skinItem[i].func(param) != 0)
                     return -2;
+                else
+                    break;
+            }
+        }
     }
 
     if (linenumber == 0) {


More information about the MPlayer-cvslog mailing list