changeset 33067:2d0058f30a6b

Issue error message in case of wrong section name.
author ib
date Wed, 30 Mar 2011 11:15:03 +0000
parents fd4d66a6add6
children d32c24fea761
files gui/skin/skin.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gui/skin/skin.c	Wed Mar 30 11:06:57 2011 +0000
+++ b/gui/skin/skin.c	Wed Mar 30 11:15:03 2011 +0000
@@ -125,6 +125,10 @@
 
     if (!strcmp(strlower(in), "movieplayer"))
         skin = &appMPlayer;
+    else {
+        skin_error(MSGTR_SKIN_UNKNOWN_NAME, in);
+        return 1;
+    }
 
     mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[skin]  section: %s\n", in);