[MPlayer-cvslog] r33174 - trunk/gui/skin/skin.c
ib
subversion at mplayerhq.hu
Fri Apr 1 13:04:48 CEST 2011
Author: ib
Date: Fri Apr 1 13:04:48 2011
New Revision: 33174
Log:
Simplify parameter analysis.
Set variable directly and without if condition.
Modified:
trunk/gui/skin/skin.c
Modified: trunk/gui/skin/skin.c
==============================================================================
--- trunk/gui/skin/skin.c Fri Apr 1 12:58:04 2011 (r33173)
+++ trunk/gui/skin/skin.c Fri Apr 1 13:04:48 2011 (r33174)
@@ -825,10 +825,7 @@ static int cmd_decoration(char *in)
return 1;
}
- if (strcmp(in, "enable") != 0)
- skin->mainDecoration = 0;
- else
- skin->mainDecoration = 1;
+ skin->mainDecoration = (strcmp(in, "enable") == 0);
mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[skin] decoration: %s\n", in);
More information about the MPlayer-cvslog
mailing list