Re: libvo2 api/design problem

Attila Kinali <[email protected]>
Newsgroups gmane.comp.video.mplayer.g2.devel
Organization NERV
Message-ID <[email protected]>
On Mon, 7 Jul 2003 23:14:00 +0200
Arpi <[email protected]> wrote:

> I 2 possible solutions:
> 1. assume that every vo device with name beginning wiht char 'x' is x11
>    device. so xv, xmga, xvidix, xgl...
>    it sounds quite lame, but this is the only way to know if a driver is
>    x11 or non-x11 driver, before calling preinit(). it may be interesting
>    for a GUI or even for a CLI app to know which drivers require X11 or
>    which drivers won't use X11 (if the GUI has embedded winde, liek a
>    browser plugin).
> 2. instead of using VO_EVENT_CONFIG to requiest teh window, we could
>    define VO_EVENT_SET_WINDOW or so, so x11 drivers can ask for a
>    window (at config()) if not yet set (via control()).


I'd prefere #1, but would extend the vo_info_t structure by
a special requirements field and put there a VO_NEED_X11 or something
like that.

			Attila Kinali

-- 
Emacs ist für mich kein Editor. Für mich ist das genau das gleiche, als wenn
ich nach einem Fahrrad (für die Sonntagbrötchen) frage und einen pangalaktischen
Raumkreuzer mit 10 km Gesamtlänge bekomme. Ich weiß nicht, was ich damit soll.
		-- Frank Klemm, de.comp.os.unix.discussion
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.