[MPlayer-cvslog] r37097 - in trunk: gui/skin/skin.c help/help_mp-de.h help/help_mp-en.h

ib subversion at mplayerhq.hu
Fri Mar 28 13:04:57 CET 2014


Author: ib
Date: Fri Mar 28 13:04:57 2014
New Revision: 37097

Log:
Check numphases.

Don't allow it to be zero.

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	Fri Mar 28 12:40:37 2014	(r37096)
+++ trunk/gui/skin/skin.c	Fri Mar 28 13:04:57 2014	(r37097)
@@ -659,6 +659,11 @@ static int item_hpotmeter(char *in)
     item->Bitmap.Image = NULL;
 
     if (strcmp(phfname, "NULL") != 0) {
+        if (num == 0) {
+            skin_error(MSGTR_GUI_MSG_SkinErrorNumphases);
+            return 1;
+        }
+
         av_strlcpy(buf, path, sizeof(buf));
         av_strlcat(buf, phfname, sizeof(buf));
 
@@ -794,6 +799,11 @@ static int item_pimage(char *in)
     item->Bitmap.Image = NULL;
 
     if (strcmp(phfname, "NULL") != 0) {
+        if (num == 0) {
+            skin_error(MSGTR_GUI_MSG_SkinErrorNumphases);
+            return 1;
+        }
+
         av_strlcpy(buf, path, sizeof(buf));
         av_strlcat(buf, phfname, sizeof(buf));
 


More information about the MPlayer-cvslog mailing list