Re: Using V4L as sub process (thread/fork, ANYTHING!!!!)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



"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”





[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux