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

ib subversion at mplayerhq.hu
Wed Mar 30 12:36:52 CEST 2011


Author: ib
Date: Wed Mar 30 12:36:52 2011
New Revision: 33151

Log:
Add error check.

Check whether a section is already open.

Modified:
   trunk/gui/skin/skin.c

Modified: trunk/gui/skin/skin.c
==============================================================================
--- trunk/gui/skin/skin.c	Wed Mar 30 12:14:41 2011	(r33150)
+++ trunk/gui/skin/skin.c	Wed Mar 30 12:36:52 2011	(r33151)
@@ -118,6 +118,11 @@ int skinBPRead(char *fname, txSample *bf
 // section=movieplayer
 static int cmd_section(char *in)
 {
+    if (skin) {
+        skin_error(MSGTR_SKIN_ERROR_ITEM, "section");
+        return 1;
+    }
+
     if (!strcmp(strlower(in), "movieplayer"))
         skin = &appMPlayer;
 


More information about the MPlayer-cvslog mailing list