Re: problems with cleaning up after capturing...

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



Hi,

I too have noticed this behaviour. When the device is closed, it needs a
little time (a second, or less) to clean up before it is re-opened. That
hasn't bothered me, though, because I have a program thread that
continuously captures and closes the device only once, at the end of all
capturing.

Maybe you could modify your program to do the same, otherwise allow a little
time before you reopen the device. I'm afraid, I can't be of much help, as I
am new to all this, as well.

Hope this helps.

/G


----- Original Message -----
From: <Preuss.t@xxxxxxxxxxxx>
To: <video4linux-list@xxxxxxxxxx>
Sent: Wednesday, December 18, 2002 9:34 AM
Subject: problems with cleaning up after capturing...


Hello!
I'm currently working on an application(using svgalib)that starts
capturing(v4l and bttv of course) from a Haupauge BT878 chip after a
certain serial command...
This works fine...but only once.
When i captured once and i try to open the device again then i get the
error message : "device or resource busy"!

Maybe this is because of my poor cleanup routine.
I only close the filedescriptor after the capture process.
(I also tried to end caturing by sending VIDIOCCAPTURE via ioctl but
this causes an error too... "Invalid argument")

Can anyone solve this riddle?

Here is the source code that runs in a thread...

<snip>





[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