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

Alban Bedel albeu at free.fr
Tue Nov 8 18:51:39 CET 2005


Hi all,

i finnaly got around updating my patch after the last osd related
changes. This patch drop (nearly) all the current mess with 100's of
frame counter variables for the osd. Instead a simple message stack
is used and timing is in ms so it should be relatively independent
of the fps.

The commands now only need to do a simple function call to set
a message or the bar. No need for #ifdef and all that crap.

Some commands called vo_osd_changed(OSDTYPE_SUBTITLE) even if they
are totaly unrelated to the (text) subs. This look to me as
some blind copy/paste so i left them commented for now.

The subtitles switching stuff is a total mess, i intend to move
that code out of main() later so i currently left it more or less
as is.

As a little extra i added a terminal version of the osd. It's used
for audio only and if osd is disabled from libvo.

Comments and testing are welcome :)

	Albeu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: osd.diff
Type: application/octet-stream
Size: 27890 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20051108/17c871fa/attachment.obj>


More information about the MPlayer-dev-eng mailing list