[MPlayer-dev-eng] libvo ...

Arpi arpi at thot.banki.hu
Wed Oct 9 03:24:14 CEST 2002


Hi,

I've added an experimental option to mplayer: -fixed-vo (any ideas for a
better name?)

It enforces the specified (tech/libvo.txt) behaviour, so it calls
vo->preinit() once at startup, and vo->uninit() at exit, and zero, one or
more (one per file) vo->config() calls.

A quick test shown:

gl, xmga, xv: opens new window for every file
xvidix, x11: works ok, but recreate window at config()

imho all X11 vo should work this way:

if it's not the first config() call (vo_config_count>0 or vo_window!=None)
then instead of destroying and recreating teh window, it should just resize
it and resize/recreate only the Shm/XvImage/GLXsurface/etc in it.

also, since mplayer can fallback to next vo if one preinit() failed, it's
time to fix your vo driver to do availability check in preinit(): so once
your preinit() returned OK, it should not fail in config().
currently many vo don't implement preinit() or does not actually check if
the given interface is available, so it will fail only in config(), but it's
too late then to switch to another vo.


A'rpi / Astral & ESP-team

--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu



More information about the MPlayer-dev-eng mailing list