[vlc-devel] AW: Re: Trouble writing vout plugin

Andreas Korth andreas.korth at gmx.net
Tue Nov 11 20:06:51 CET 2003


Hi Florian

thanks for your answer! I was suspecting that my problem has _something_
to do with thread raceconditions but I couldn't find any code dealing
with synchronization in any of the vout plugins I examined.

I was in fact using GLUT in the first place but I replaced it in favor
of plain GLX which didn't help. Admittedly, I have very few experience
in X11 programming. 

How would I establish a new X11-connection? Right now, I'm using
XOpenDisplay() to get the display on which I then create an X11 window
with a GLX context. I borrowed that code from a GL sample application
and modified it to work for me. It is essentially still a black (or
grey) box to me but I couldn't see any major difference to the existing
x11 plugin code (in xcommon.c).

I guess, I'll just give it a try - but I won't get to my development
machine until the end of the week. I'll drop you a note if I get along.

Cheers,
Andreas

> >  
> > VLC will SIGSEGV 11 when the call is made from the 
> "Display" function. 
> > The
> > same call executes happily when issued during initialization. 
> >  
> 
> Hi
> 
> Looks like some library is used from two different threads, 
> but is not thread safe. I looks like you are using the KDE 
> Interface plugin (because of the KCrash-handle kicking in). 
> You could try using the "dummy" Interface - or some other 
> Interface that doesn't use X11.
> 
> I don't know how this is handled in the xv and x11 output 
> plugins. I guess they open their own connection to the 
> XServer... How do you create the OpenGL-Window? If you use 
> GLUT, then maybe GLUT uses the same X11-Connection already 
> used by the Interface, and this gives you nasty raceconditions...
> 
> Hoping I could help...
> greetings, Florian Pflug

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>



More information about the vlc-devel mailing list