"David J. Topper" <topper@xxxxxxxxxxxx> writes: > I've tried every way to Sunday to get a V4L type process to run > separately from within my GTK app. Unfortunately, it seems as though > (the bttv driver at least) does not function in a manner consistent > with gdk_input_add() so I'm left to some kind of hack: With bttv 0.9.x it just works. > pthread() -> when thread is not joined, I get an Xlib error about some > kind of async. I guess the v4l drivers are not thread safe? X11 needs locking with threads, see "man XInitThreads". Don't know how gtk handles this through ... The bttv driver itself uses locks to serialize stuff if needed, so you can call the driver from multiple threads without f*cking something up. It is not the greatest idea to do that through, especially doing the queuing and unqueuing of buffers from different threads. You might run into deadlocks then. Gerd -- Weil die späten Diskussionen nicht mal mehr den Rotwein lohnen. -- Wacholder in “Melanie”