Mercurial > mplayer.hg
diff gui/skin/skin.c @ 37001:64fabc358356
Check numphases.
Don't allow it to be zero.
author | ib |
---|---|
date | Fri, 28 Mar 2014 12:04:57 +0000 |
parents | ea94ee043275 |
children | c840891d1be9 |
line wrap: on
line diff
--- a/gui/skin/skin.c Fri Mar 28 11:40:37 2014 +0000 +++ b/gui/skin/skin.c Fri Mar 28 12:04:57 2014 +0000 @@ -659,6 +659,11 @@ 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 @@ 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));