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

ib subversion at mplayerhq.hu
Fri Apr 1 14:23:56 CEST 2011


Author: ib
Date: Fri Apr  1 14:23:56 2011
New Revision: 33178

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 14:15:10 2011	(r33177)
+++ trunk/gui/skin/skin.c	Fri Apr  1 14:23:56 2011	(r33178)
@@ -420,7 +420,6 @@ static int cmd_button(char *in)
 // selected=image
 static int cmd_selected(char *in)
 {
-    unsigned char fname[512];
     unsigned char file[512];
 
     if (!window_cmd("selected"))
@@ -433,14 +432,12 @@ static int cmd_selected(char *in)
     if (in_window("playbar"))
         return 1;
 
-    cutItem(in, fname, ',', 0);
-
     skin->menuSelected.type = itBase;
 
     av_strlcpy(file, path, sizeof(file));
-    av_strlcat(file, fname, sizeof(file));
+    av_strlcat(file, in, sizeof(file));
 
-    mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[skin]    image selected: %s\n", fname);
+    mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[skin]    image selected: %s\n", in);
 
     if (skinBPRead(file, &skin->menuSelected.Bitmap) != 0)
         return 1;


More information about the MPlayer-cvslog mailing list