[Mplayer-cvslog] CVS: main m_config.c,1.2,1.3

Arpi of Ize arpi at mplayerhq.hu
Sat Jan 11 17:42:42 CET 2003


Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv31618

Modified Files:
	m_config.c 
Log Message:
print meaningful error message


Index: m_config.c
===================================================================
RCS file: /cvsroot/mplayer/main/m_config.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- m_config.c	21 Dec 2002 21:00:45 -0000	1.2
+++ m_config.c	11 Jan 2003 16:42:24 -0000	1.3
@@ -214,8 +214,10 @@
 #endif
 
   co = m_config_get_co(config,arg);
-  if(!co)
+  if(!co){
+    mp_msg(MSGT_CFGPARSER, MSGL_ERR,"Unknown option: %s\n",arg);
     return M_OPT_UNKNOW;
+  }
 
 #ifdef MP_DEBUG
   // This is the only mandatory function



More information about the MPlayer-cvslog mailing list