diff m_option.c @ 34149:11d9ef2177ec

Improve option type CONF_TYPE_PRINT. Allow printing options that neither exit MPlayer nor need an "extra option" in order to work. This fixes that mplayer -gui file won't play, while mplayer -gui -v file for example does.
author ib
date Sat, 22 Oct 2011 11:00:31 +0000
parents cf2a4f4cac0e
children ab178e06077e
line wrap: on
line diff
--- a/m_option.c	Sat Oct 22 00:17:28 2011 +0000
+++ b/m_option.c	Sat Oct 22 11:00:31 2011 +0000
@@ -888,6 +888,8 @@
 
   if(opt->priv == NULL)
     return M_OPT_EXIT;
+  if(opt->priv == PRIV_NO_EXIT)
+    return 0;
   return 1;
 }