[MPlayer-cvslog] CVS: main/libmenu menu_dvbin.c,1.4,1.5
Nico Sabbi CVS
syncmail at mplayerhq.hu
Sat Feb 25 00:01:42 CET 2006
CVS change done by Nico Sabbi CVS
Update of /cvsroot/mplayer/main/libmenu
In directory mail:/var2/tmp/cvs-serv1265
Modified Files:
menu_dvbin.c
Log Message:
auto hide dvb menu if auto-close is specified in menu.conf; patch by Ben Zores ben a geexbox di org
Index: menu_dvbin.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmenu/menu_dvbin.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- menu_dvbin.c 26 Oct 2005 00:07:43 -0000 1.4
+++ menu_dvbin.c 24 Feb 2006 23:01:40 -0000 1.5
@@ -39,6 +39,7 @@
char* file;
int card;
int level;
+ int auto_close;
dvb_config_t *config;
};
@@ -49,6 +50,7 @@
static m_option_t cfg_fields[] = {
MENU_LIST_PRIV_FIELDS,
{ "title", ST_OFF(title), CONF_TYPE_STRING, 0, 0, 0, NULL },
+ { "auto-close", ST_OFF(auto_close), CONF_TYPE_FLAG, 0, 0, 1, NULL },
{ NULL, NULL, NULL, 0,0,0,NULL },
};
@@ -59,6 +61,7 @@
"channels.conf",
0,
0,
+ 1,
NULL,
};
@@ -210,7 +213,11 @@
c = mp_input_parse_cmd(cmd_name);
if(c)
- mp_input_queue_cmd(c);
+ {
+ if (mpriv->auto_close)
+ mp_input_queue_cmd (mp_input_parse_cmd ("menu hide"));
+ mp_input_queue_cmd(c);
+ }
}
}
break;
More information about the MPlayer-cvslog
mailing list