[MPlayer-dev-eng] [RFC] configure error out if both OpenGL and corevideo

Reimar Döffinger Reimar.Doeffinger at gmx.de
Tue Sep 1 17:46:31 CEST 2009


On Tue, Sep 01, 2009 at 02:38:55PM +0200, Diego Biurrun wrote:
> On Tue, Sep 01, 2009 at 02:34:33PM +0200, Reimar Döffinger wrote:
> > On Tue, Sep 01, 2009 at 02:08:13PM +0200, Diego Biurrun wrote:
> > > On Tue, Sep 01, 2009 at 10:55:53AM +0200, Reimar Döffinger wrote:
> > > > since the corevideo framework and libGL both use functions with the same
> > > > names (the OpenGL stuff) but different implementations, both together
> > > > will necessarily cause at least one to crash.
> > > 
> > > Can you elaborate, it appears to work fine on my machine.  I can use
> > > vo_corevideo, vo_gl and vo_gl2 without problems...
> > 
> > Hm. I had some suspicions like that. Please try running MPlayer under
> > the OpenGL profiler and select some other implementation, the "Software"
> > one might work best to reproduce it.
> 
> How do I do that?

Hm.
/Developer/Applications/Graphics Tools/OpenGL Profiler
Welcome to the usability-nightmare called OpenGL Profiler (yes, this is
proof that even Apple can severely mess up Guis).
To add MPlayer, you must use the little "+" button to the lower left of
the applications list.
Below that you can open the launch settings and select a driver.

> > Of course it might just be luck and the OpenGL stuff by chance was
> > linked against the -framework OpenGL libs and not the X11 libGL...
> 
> Maybe we should make sure that it is linked against the correct one
> then?

I don't know how to do that. If you mean just replace -lGL by -framework
OpenGL on OSX for -vo gl, that won't work because -vo gl needs the glX
stuff, which (idiotically) is in the X11 libGL and only there.
So what you'd need is getting glClear etc. pp. from -framework OpenGL
and glX* from -lGL, and even with that -vo gl would probably crash at
least in some cases.

> BTW, the image is tinted red with vo_gl2 under OS X, is that a known
> problem?

What does "tinted red" mean? What does e.g. -vf rgbtest look like?
Anyway, no idea, but I have some other questions, e.g. have you ever installed "mesa"
via e.g. macports or something?
I suspect that it might all work as long as the OpenGL stuff via
Cocoa/CoreVideo ends up at the same driver as those going through libGL,
but at least if libGL is pure software mesa (which I admit even the
macports one isn't) that can't really be the case (and I suspect it
would cause some performance degradation even if it does not crash).



More information about the MPlayer-dev-eng mailing list