[MPlayer-cvslog] r33164 - in trunk: gui/skin/skin.c help/help_mp-de.h help/help_mp-en.h

ib subversion at mplayerhq.hu
Thu Mar 31 11:09:55 CEST 2011


Author: ib
Date: Thu Mar 31 11:09:54 2011
New Revision: 33164

Log:
Add a check for unknown items.

Issue error message in case of an unknown skin item.

Modified:
   trunk/gui/skin/skin.c

Changes in other areas also in this revision:
Modified:
   trunk/help/help_mp-de.h
   trunk/help/help_mp-en.h

Modified: trunk/gui/skin/skin.c
==============================================================================
--- trunk/gui/skin/skin.c	Thu Mar 31 11:03:53 2011	(r33163)
+++ trunk/gui/skin/skin.c	Thu Mar 31 11:09:54 2011	(r33164)
@@ -914,6 +914,11 @@ int skinRead(char *dname)
                     break;
             }
         }
+
+        if (i == FF_ARRAY_ELEMS(skinItem)) {
+            skin_error(MSGTR_SKIN_UNKNOWN_ITEM, item);
+            return -2;
+        }
     }
 
     if (linenumber == 0) {


More information about the MPlayer-cvslog mailing list