Mercurial > mplayer.hg
changeset 33055:2be86f1db767
Make use of return value of strlower().
author | ib |
---|---|
date | Tue, 29 Mar 2011 10:31:03 +0000 |
parents | ed66afc0b06c |
children | 1c2070f0abca |
files | gui/skin/skin.c |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/skin/skin.c Tue Mar 29 10:21:39 2011 +0000 +++ b/gui/skin/skin.c Tue Mar 29 10:31:03 2011 +0000 @@ -133,10 +133,9 @@ // section=movieplayer static int cmd_section(char *in) { - strlower(in); skin = NULL; - if (!strcmp(in, "movieplayer")) + if (!strcmp(strlower(in), "movieplayer")) skin = &appMPlayer; mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[skin] section: %s\n", in); @@ -782,8 +781,7 @@ CHECK("menu"); CHECK("playbar"); - strlower(in); - cutItem(in, tmp, ',', 0); + cutItem(strlower(in), tmp, ',', 0); if (strcmp(tmp, "enable") != 0 && strcmp(tmp, "disable") != 0) { skin_error(MSGTR_SKIN_UnknownParameter, tmp);