Mercurial > mplayer.hg
diff libmenu/vf_menu.c @ 13344:0d96af97ec00
option to display menu at startup, patch by Aurelien Jacobs <aurel at gnuage.org>
author | faust3 |
---|---|
date | Wed, 15 Sep 2004 13:37:49 +0000 |
parents | 6180d7558f75 |
children | 39bdfbbc4216 |
line wrap: on
line diff
--- a/libmenu/vf_menu.c Wed Sep 15 13:16:52 2004 +0000 +++ b/libmenu/vf_menu.c Wed Sep 15 13:37:49 2004 +0000 @@ -29,6 +29,8 @@ static mp_image_t* pause_mpi = NULL; static int go2pause = 0; +/// if nonzero display menu at startup +int menu_startup = 0; struct vf_priv_s { menu_t* root; @@ -260,6 +262,7 @@ st_priv = NULL; return 0; } + st_priv->root->show = menu_startup; mp_input_add_cmd_filter((mp_input_cmd_filter)cmd_filter,st_priv); }