changeset 33091:6ce0b74d03b7

Remove needless variable. Use passed parameter directly instead.
author ib
date Fri, 01 Apr 2011 12:23:56 +0000
parents db699b367260
children 83052a4ac698
files gui/skin/skin.c
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/gui/skin/skin.c	Fri Apr 01 12:15:10 2011 +0000
+++ b/gui/skin/skin.c	Fri Apr 01 12:23:56 2011 +0000
@@ -420,7 +420,6 @@
 // selected=image
 static int cmd_selected(char *in)
 {
-    unsigned char fname[512];
     unsigned char file[512];
 
     if (!window_cmd("selected"))
@@ -433,14 +432,12 @@
     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;