[MPlayer-dev-eng] [PATCH] OSD Menu

Diego Biurrun diego at biurrun.de
Wed Jul 24 05:57:53 CEST 2002


Alban Bedel writes:
 > 
 > i wanted to do this since a while. I simple osd menu. Here is the first hack wich
 > consist of 3 menus. A generic one where each entry is bound to a command.
 > A 'jump to' menu to choose another entry in the playlist. And a fileselector to
 > load a file or a playlist.
 > All this is very primitive atm but it's usable :) 
 > To use it you need to add a few lines to your input.conf like this :
 > 
 > 8 menu up
 > 5 menu down
 > 4 menu cancel
 > 6 menu ok
 > 
 > Then run mplayer -menu some_movies .... 
 > The menu will show up when you press any of the keys you choose.

Very cool stuff, I like this.

It does not compile with --enable-gui, though, are gui and menu
mutually exclusive?

libmpcodecs/libmpcodecs.a(vf_menu.o): In function `vf_menu_read_cmd':
vf_menu.o(.text+0x56): undefined reference to `menu_read_cmd'
vf_menu.o(.text+0x83): undefined reference to `menu_read_cmd'
vf_menu.o(.text+0xb8): undefined reference to `menu_read_cmd'
vf_menu.o(.text+0xe3): undefined reference to `menu_read_cmd'
vf_menu.o(.text+0x10d): undefined reference to `menu_close'
libmpcodecs/libmpcodecs.a(vf_menu.o): In function `put_image':
vf_menu.o(.text+0x337): undefined reference to `menu_draw'
libmpcodecs/libmpcodecs.a(vf_menu.o): In function `vf_menu_set_menu':
vf_menu.o(.text+0x37b): undefined reference to `menu_open'
libmpcodecs/libmpcodecs.a(vf_menu.o): In function `open':
vf_menu.o(.text+0x401): undefined reference to `menu_open'
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1


Then, when we start with -menu and no file name we probably should not
exit with a help screen but run the menu file picker, but this is
further down the road..

Diego



More information about the MPlayer-dev-eng mailing list