Mercurial > mplayer.hg
changeset 33064:33d307c4430c
Add error check.
Check whether a section is already open.
author | ib |
---|---|
date | Wed, 30 Mar 2011 10:36:52 +0000 |
parents | 39521b9a9ca5 |
children | 83c226105086 |
files | gui/skin/skin.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/skin/skin.c Wed Mar 30 10:14:41 2011 +0000 +++ b/gui/skin/skin.c Wed Mar 30 10:36:52 2011 +0000 @@ -118,6 +118,11 @@ // section=movieplayer static int cmd_section(char *in) { + if (skin) { + skin_error(MSGTR_SKIN_ERROR_ITEM, "section"); + return 1; + } + if (!strcmp(strlower(in), "movieplayer")) skin = &appMPlayer;