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

ib subversion at mplayerhq.hu
Fri Apr 1 12:58:04 CEST 2011


Author: ib
Date: Fri Apr  1 12:58:04 2011
New Revision: 33173

Log:
Remove needless variable.

Use passed parameter directly instead.

Modified:
   trunk/gui/skin/skin.c

Modified: trunk/gui/skin/skin.c
==============================================================================
--- trunk/gui/skin/skin.c	Fri Apr  1 12:36:11 2011	(r33172)
+++ trunk/gui/skin/skin.c	Fri Apr  1 12:58:04 2011	(r33173)
@@ -808,8 +808,6 @@ static int cmd_dlabel(char *in)
 // decoration=enable|disable
 static int cmd_decoration(char *in)
 {
-    char tmp[512];
-
     if (!window_cmd("decoration"))
         return 1;
 
@@ -820,19 +818,19 @@ static int cmd_decoration(char *in)
     if (in_window("menu"))
         return 1;
 
-    cutItem(strlower(in), tmp, ',', 0);
+    strlower(in);
 
-    if (strcmp(tmp, "enable") != 0 && strcmp(tmp, "disable") != 0) {
-        skin_error(MSGTR_SKIN_UnknownParameter, tmp);
+    if (strcmp(in, "enable") != 0 && strcmp(in, "disable") != 0) {
+        skin_error(MSGTR_SKIN_UnknownParameter, in);
         return 1;
     }
 
-    if (strcmp(tmp, "enable") != 0)
+    if (strcmp(in, "enable") != 0)
         skin->mainDecoration = 0;
     else
         skin->mainDecoration = 1;
 
-    mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[skin]    decoration: %s\n", tmp);
+    mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[skin]    decoration: %s\n", in);
 
     return 0;
 }


More information about the MPlayer-cvslog mailing list