[MPlayer-dev-eng] [PATCH] add vcd features to osd menu

Benjamin Zores ben at tutuxclan.org
Fri Mar 28 00:54:54 CET 2003


Hi,

Here's a little patch to enable play of VCD disc from the MPlayer's OSD Menu.
It currently adds a "Play VCD" option to the menu.

It plays the VCD disc whether it's present or doesn't do anything else.

The patch slightly modifies libmenu/menu_pt.c so that you can switch to different VCD Tracks by the "Jump To ..." menu.

Another change has been done to libmenu/menu_cmdlist.c to add a new parser attribute for cmdlists.
For cmdlist items, you can now add a cond="vcd" param.
This means that the menu item only will be displayed if MPlayer has been compiled with HAVE_VCD on. ("cond" stands for condition, so items are display only in certain cases).
So, menu won't display actions he's not able to do.

Changes have been made to menu.conf to do so.
By this way, the line : 
<txt name="man" file="manpage.txt"/> 
appears twice and I think is not understand by the parser.

I'm currently working on the same features for playing DVD. Aim at letting command line mplayer do the same things with osd menu than GUI does (ie. switch to DVD titles, chapters, change subtitles and audio on the fly).

Please react/modify/comment/commit to this patch, so I'll do the same for DVDs.

Benjamin
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Patch-MPlayer-Menu-VCD.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030328/d6190747/attachment.asc>


More information about the MPlayer-dev-eng mailing list