changeset 33066:fd4d66a6add6

Don't start GUI in case of window name error.
author ib
date Wed, 30 Mar 2011 11:06:57 +0000
parents 83c226105086
children 2d0058f30a6b
files gui/skin/skin.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gui/skin/skin.c	Wed Mar 30 11:01:55 2011 +0000
+++ b/gui/skin/skin.c	Wed Mar 30 11:06:57 2011 +0000
@@ -191,8 +191,10 @@
         currWin = &appMPlayer.menuBase;
         currWinItemIdx = &appMPlayer.IndexOfMenuItems;
         currWinItems   = appMPlayer.menuItems;
-    } else
+    } else {
         skin_error(MSGTR_SKIN_UNKNOWN_NAME, in);
+        return 1;
+    }
 
     mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[skin]   window: %s\n", currWinName);