[MPlayer-cvslog] r37121 - in trunk: gui/skin/skin.c help/help_mp-de.h help/help_mp-en.h
ib
subversion at mplayerhq.hu
Thu Apr 3 12:16:01 CEST 2014
Author: ib
Date: Thu Apr 3 12:16:01 2014
New Revision: 37121
Log:
Check potmeter and pimage default value in skin configuration file.
The value has to be in the range of 0 to 100.
Modified:
trunk/gui/skin/skin.c
Changes in other areas also in this revision:
Modified:
trunk/help/help_mp-de.h
trunk/help/help_mp-en.h
Modified: trunk/gui/skin/skin.c
==============================================================================
--- trunk/gui/skin/skin.c Thu Apr 3 11:47:41 2014 (r37120)
+++ trunk/gui/skin/skin.c Thu Apr 3 12:16:01 2014 (r37121)
@@ -625,6 +625,11 @@ static int item_hpotmeter(char *in)
h = cutInt(in, ',', 9);
cutStr(in, buf, ',', 10);
+ if (d < 0 || d > 100) {
+ skin_error(MSGTR_GUI_MSG_SkinErrorDefault, d);
+ return 1;
+ }
+
message = appFindMessage(buf);
if (message == -1) {
@@ -769,6 +774,11 @@ static int item_pimage(char *in)
h = cutInt(in, ',', 6);
cutStr(in, buf, ',', 7);
+ if (d < 0 || d > 100) {
+ skin_error(MSGTR_GUI_MSG_SkinErrorDefault, d);
+ return 1;
+ }
+
message = appFindMessage(buf);
if (message == -1) {
More information about the MPlayer-cvslog
mailing list